The WM_MOVE message is sent after a window has been moved.
A window receives this message through its WindowProc function.
Syntax
WM_MOVE
WPARAM wParam
LPARAM lParam;
Parameters
- wParam
-
This parameter is not used.
- lParam
-
Specifies the x and y coordinates of the upper-left corner of the client area of the window. The low-order word contains the x-coordinate while the high-order word contains the y coordinate.
Return Value
If an application processes this message, it should return zero.
Remarks
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.
Notification Requirements
| Minimum DLL Version |
None |
|---|
| Header | Declared in Winuser.h, include Windows.h |
|---|
| Minimum operating systems |
Windows 95, Windows NT 3.1 |
|---|
See Also