WM_WINDOWPOSCHANGED message

Sent to a window whose size, position, or place in the Z order has changed as a result of a call to the SetWindowPos function or another window-management function.

A window receives this message through its WindowProc function.


#define WM_WINDOWPOSCHANGED             0x0047

Parameters

wParam

This parameter is not used.

lParam

A pointer to a WINDOWPOS structure that contains information about the window's new size and position.

Return value

Type: LRESULT

If an application processes this message, it should return zero.

Remarks

By default, the DefWindowProc function sends the WM_SIZE and WM_MOVE messages to the window. The WM_SIZE and WM_MOVE messages are not sent if an application handles the WM_WINDOWPOSCHANGED message without calling DefWindowProc. It is more efficient to perform any move or size change processing during the WM_WINDOWPOSCHANGED message without calling DefWindowProc.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
DefWindowProc
EndDeferWindowPos
SetWindowPos
WINDOWPOS
WM_MOVE
WM_SIZE
WM_WINDOWPOSCHANGING
Conceptual
Windows

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.