windows_programming_notes.nbk: Home | Index | Next Page: WM_WINDOWPOSCHANGING | Previous Page: WM_VSCROLLCLIPBOARD
The WM_WINDOWPOSCHANGED message is 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.
LRESULT CALLBACK WindowProc( HWND hwnd, // handle to window UINT uMsg, // WM_WINDOWPOSCHANGED WPARAM wParam, // not used LPARAM lParam // size and position data (LPWINDOWPOS) );
If an application processes this message, it should return zero.
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.
Windows NT/2000 or later: Requires Windows NT 3.1 or later. Windows 95/98/Me: Requires Windows 95 or later. Header: Declared in Winuser.h; include Windows.h.
windows_programming_notes.nbk: Home | Index | Next Page: WM_WINDOWPOSCHANGING | Previous Page: WM_VSCROLLCLIPBOARD
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time