Handling
a Form Moving event
If you want notification before a Form
is actually moved, handle the WM_MOVING message. If you want notification
after a Form is moved, handled the WM_MOVE message. The method presented
here can also be used for notification that a Form has been moved.
However unlike for the WM_MOVE message, the information encoded as the
low-order and high-order word of the long parameter (LParam) of the WM_SYSCOMMAND
message can be used to determine the position of the Form before
it was moved. The WParam data member is set to 0xF012 (61458 = SC_MOVE
+ HTCAPTION).
KEYWORDS: WM_SYSCOMMAND, 0xf012
|