windows_programming_notes.nbk: Home | Index | Next Page: WM_NCCREATE | Previous Page: WM_NCACTIVATE


 WM_NCCALCSIZE

The WM_NCCALCSIZE message is sent when the size and position of a window's client area must be calculated. By processing this message, an application can control the content of the window's client area when the size or position of the window changes.

A window receives this message through its WindowProc function.

    LRESULT CALLBACK WindowProc(
      HWND hwnd,       // handle to window
      UINT uMsg,       // WM_NCCALCSIZE
      WPARAM wParam,   // validation flag (BOOL)
      LPARAM lParam    // data (LPNCCALCSIZE_PARAMS or LPRECT)
    );

Parameters

Return Values

Remarks The window may be redrawn, depending on whether the CS_HREDRAW or CS_VREDRAW class style is specified. This is the default, backward-compatible processing of this message by the DefWindowProc function (in addition to the usual client rectangle calculation described in the preceding table).

Requirements


windows_programming_notes.nbk: Home | Index | Next Page: WM_NCCREATE | Previous Page: WM_NCACTIVATE


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