views:

64

answers:

2

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?

+1  A: 

The window will receive a WM_ENTERSIZEMOVE message when moving begins, and WM_EXITSIZEMOVE when it ends.

interjay
+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