C
crafuse
Hello,
I have an application where I have a main window and several other
windows owned by it. The owned windows are derived from a class that
overrides the OnMove method so that thay automatically snap to the
right side of the main window when they get close enough.
My problem is that I move the owned windows in the OnMove method. This
causes horrible flickering since the underlying class is painting the
form to the new position and then the OnMove event is fired and my code
moves it back.
How can you take over the painting of a form (frame and all) so that I
may disable painting while it is snapped?
Chris
I have an application where I have a main window and several other
windows owned by it. The owned windows are derived from a class that
overrides the OnMove method so that thay automatically snap to the
right side of the main window when they get close enough.
My problem is that I move the owned windows in the OnMove method. This
causes horrible flickering since the underlying class is painting the
form to the new position and then the OnMove event is fired and my code
moves it back.
How can you take over the painting of a form (frame and all) so that I
may disable painting while it is snapped?
Chris