windows_programming_notes.nbk: Home | Index | Next Page: WM_SIZECLIPBOARD | Previous Page: WM_SHOWWINDOW


 WM_SIZE

The WM_SIZE message is sent to a window after its size has changed.

A window receives this message through its WindowProc function.

Syntax

    WM_SIZE
        WPARAM wParam
        LPARAM lParam

Parameters

Return Value

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

Remarks

If the SetScrollPos or MoveWindow function is called for a child window as a result of the WM_SIZE message, the bRedraw or bRepaint parameter should be nonzero to cause the window to be repainted.

Although the width and height of a window are 32-bit values, the lParam parameter contains only the low-order 16 bits of each.

Notification Requirements


Prototype for Message Handler

void on_size(HWND hwnd, UINT state, int cx, int cy)
{
}

windows_programming_notes.nbk: Home | Index | Next Page: WM_SIZECLIPBOARD | Previous Page: WM_SHOWWINDOW


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time