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.
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.