Reputation: 23
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?
Upvotes: 2
Views: 323
Reputation: 34218
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.
Upvotes: 4
Reputation: 110203
The window will receive a WM_ENTERSIZEMOVE message when moving begins, and WM_EXITSIZEMOVE when it ends.
Upvotes: 1