Windows

Register Window Class.

Create Window of the type registered.

WM_CREATE is an Extension of the CreateWindow Fn call

And is executed before the Fn returns.

WM_GETMINMAXINFO.

WM_NCCREATE.

WM_NCCALCSIZE.

WM_CREATE.

Show the window.

Applications create their main window by calling CreateWindow with the WS_VISIBLE flag set.

Applications create their main window by calling CreateWindow with the WS_VISIBLE flag cleared, and later call ShowWindow with the SW_SHOW flag set to make it visible.

Message Loop

Get Message.

Dispatch Message.

Parent Window Object

Contain individual hWnds for controls.

SendMessage

(<L|P>PARAM)MAKELONG(LOWORD, HIGHWORD);

________________.

SubClassing

WinAPI.

For example, an Edit Control’s default message handler can be overriden to handle specific messages.

And will call the base handler for the remaining messages.

Should reset it before exit (but why - how is it global).

SetWindowLong [SetWindowLongPtr - GWLP_WNDPROC for both x86 & x64 compaitbility).

DialogBox Get Tab & Enter

SubClass

if (uMsg == WM_GETDLGCODE)

Return DLGC_WANTALLKEYS;.

________________.

Updated: 2026 Aug 19