Creation Messages

From ReliCodia

WM_NCCREATE

Non-client create--Sent before WM_CREATE during the call to CreateWindowEx

wParam--not used
lParam--pointer to CREATESTRUCT

Return FALSE to stop window creation

There are some messages that may arrive even before WM_NCCREATE, one of them being WM_GETMINMAXINFO.

WM_CREATE

Sent and processed during the call to CreateWindowEx

wParam--not used
lParam--pointer to CREATESTRUCT

Return -1 to stop window creation (CreateWindow will return NULL)

WM_INITDIALOG

Sent during the creation of a dialog. Note: This message may be preceded by other messages, such as WM_SETFONT.