Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windowing
Windows
Windows Reference
Notifications
 WM_MOVE Notification
WM_MOVE Notification

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
HeaderDeclared in Winuser.h, include Windows.h
Minimum operating systems Windows 95, Windows NT 3.1

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Value      Đonny   |   Edit   |   Show History
WM_MOVE = &H3
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker