WM_NCCREATE

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

WM_NCCREATE 
lpcs = (LPCREATESTRUCT) lParam;  // structure with creation data 
 

Parameters

lpcs
Value of lParam. Pointer to the CREATESTRUCT structure that contains information about the window being created. The members of CREATESTRUCT are identical to the parameters of the CreateWindowEx function. .

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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winuser.h.

See Also

Windows Overview, Window Messages, CreateWindow, CreateWindowEx, DefWindowProc, CREATESTRUCT, WM_CREATE