windows_programming_notes.nbk: Home | Index | Next Page: WM_NCDESTROY | Previous Page: WM_NCCALCSIZE


 WM_NCCREATE

The WM_NCCREATE message is sent prior to the WM_CREATE message when a window is first created.

A window receives this message through its WindowProc function.

    LRESULT CALLBACK WindowProc(
      HWND hwnd,       // handle to window
      UINT uMsg,       // WM_NCCREATE
      WPARAM wParam,   // not used
      LPARAM lParam    // creation data (LPCREATESTRUCT)
    );

Parameters

Return Values If an application processes this message, it should return TRUE to continue creation of the window. If the application returns FALSE, the CreateWindow or CreateWindowEx function will return a NULL handle.

Requirements


windows_programming_notes.nbk: Home | Index | Next Page: WM_NCDESTROY | Previous Page: WM_NCCALCSIZE


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