windows_programming_notes.nbk: Home | Index | Next Page: WM_MOVING | Previous Page: WM_MOUSEWHEEL
The WM_MOVE message is sent after a window has been moved.
A window receives this message through its WindowProc function.
If an application processes this message, it should return zero.
The parameters are given in screen coordinates for overlapped and pop-up windows and in parent-client coordinates for child windows.
The following example demonstrates how to obtain the position from the lParam parameter.
xPos = (int)(short) LOWORD(lParam); // horizontal position yPos = (int)(short) HIWORD(lParam); // vertical position
You can also use the MAKEPOINTS macro to convert the lParam parameter to a POINTS structure.
windows_programming_notes.nbk: Home | Index | Next Page: WM_MOVING | Previous Page: WM_MOUSEWHEEL
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time