This message is sent prior to the WM_CREATE message when a window is first created.
The WM_NCCREATE message may be used as either a wide-character message (where text arguments must use Unicode) or an ANSI message (where text arguments must use characters from the Windows 3.x character set installed).
wParam
This parameter is reserved for future use.
lParam
Points to the CREATESTRUCT data structure for the window.
The return value is nonzero if the nonclient area is created. It is zero if an error occurs; the CreateWindow function will return NULL in this case.
Scroll bars are initialized (the scroll-bar position and range are set) and the window text is set. Memory used internally to create and maintain the window is allocated.
CreateWindow