Is there an easy way to figure this out? I guess I can use WM_MOVE to tell me when it begins by keeping a timer. If the window has not received a WM_MOVE message within the last 2 seconds, then I know that it has just begun to move. Then I set another timer and wait for their not to be a message within a period of time (2 seconds). If nothing is received, then I can be confident that the window move has finished. Is this the right way to go about this?
views:
64answers:
2
+2
Q:
With my global hook installed, how do I know when a window begins to move and when it stops moving?
+1
A:
The window will receive a WM_ENTERSIZEMOVE message when moving begins, and WM_EXITSIZEMOVE when it ends.
interjay
2010-02-07 01:22:50
+3
A:
If you are in a position to see WM_MOVE
messages, then you are also in a position to see WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE messages.
John Knoeller
2010-02-07 01:24:19