
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