WM_NCCREATE message

Sent prior to the WM_CREATE message when a window is first created.

A window receives this message through its WindowProc function.

#define WM_NCCREATE                     0x0081

Parameters

wParam

This parameter is not used.

lParam

A 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 value

Type: LRESULT

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

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

CreateWindow

CreateWindowEx

DefWindowProc

CREATESTRUCT

WM_CREATE

Conceptual

Windows