How to detect container dialog is moved in composite control 
Author Message
 How to detect container dialog is moved in composite control

  I have a composite control, and I implement the control's OnMove(),
OnPaint() and OnSize(). I also create a container dialox box contains this
control. There's one issue is that as dialog box moves, The composite
control's OnPaint() or OnMove() is not executed, so the control can't detect
whether the Container is moved. I wants to move the DDrawSurface which is
created by Composite Control.
    There's one not clever solution is set a timer in Composite control, and
this timer will calculate the parent dialog window's position from time to
time.
  Do you have any other idea of it?

Thanks,
Daniel



Thu, 17 Oct 2002 03:00:00 GMT  
 How to detect container dialog is moved in composite control
You can try using Windows hooks. See SetWindowsHookEx().

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================


Quote:
>   I have a composite control, and I implement the control's OnMove(),
> OnPaint() and OnSize(). I also create a container dialox box contains this
> control. There's one issue is that as dialog box moves, The composite
> control's OnPaint() or OnMove() is not executed, so the control can't
detect
> whether the Container is moved. I wants to move the DDrawSurface which is
> created by Composite Control.
>     There's one not clever solution is set a timer in Composite control,
and
> this timer will calculate the parent dialog window's position from time to
> time.
>   Do you have any other idea of it?

> Thanks,
> Daniel



Fri, 18 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Control in dialog detecting moved dialog.

2. ATL composite controls inside an MFC container

3. ATL composite controls inside an MFC container

4. PRB: Moving focus between composite controls

5. A composite control calling another composite control in web browser

6. Composite control hosted by a composite control.

7. how to detect Composite Control is Activate or Inactivate

8. Child window of ActiveX control doesn't draw when control is moved in dialog

9. detecting which slider control is moved

10. Composite control in MFC modeless dialog

11. MFC dialog from ATL composite control

12. ATL ActiveX Composite Control WITHOUT a dialog box?

 

 
Powered by phpBB® Forum Software