deft.platform.win32.wndproc

The master window procedure and the HWND → Widget registry.

Every Deft window class is registered with the single wndProc below. It finds the Widget that owns the target HWND and forwards the message to Widget.processMessage, where per-widget handling lives. Lookup is by GWLP_USERDATA (set when the widget's handle is created), with the registry associative array as a fallback.

Members

Functions

lookupWidget
Widget lookupWidget(HWND h)

Look up the widget that owns an HWND, or null.

registerWidget
void registerWidget(HWND h, Widget w)

Register a widget under its HWND.

unregisterWidget
void unregisterWidget(HWND h)

Remove a widget's HWND from the registry.

wndProc
LRESULT wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)

The single window procedure shared by all Deft window classes.

Meta