diff -r ca3918f9c96b -r 7d3dd5aacfda ui/win32/toolkit.c --- a/ui/win32/toolkit.c Wed Nov 19 11:41:33 2025 +0100 +++ b/ui/win32/toolkit.c Wed Nov 19 12:17:59 2025 +0100 @@ -62,8 +62,6 @@ uic_toolbar_init(); uic_load_app_properties(); - ui_window_init(); - INITCOMMONCONTROLSEX icex = { sizeof(icex), ICC_WIN95_CLASSES | ICC_LISTVIEW_CLASSES | ICC_TREEVIEW_CLASSES | ICC_BAR_CLASSES | ICC_TAB_CLASSES @@ -75,6 +73,8 @@ NONCLIENTMETRICS ncm = { sizeof(ncm) }; SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(ncm), &ncm, FALSE); ui_font = CreateFontIndirect(&ncm.lfMessageFont); + + ui_window_init(); } HFONT ui_win32_get_font(void) { @@ -129,6 +129,8 @@ } LRESULT CALLBACK ui_default_eventproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { + printf("default event proc: %d, %d\n", (int)hwnd, (int)uMsg); + fflush(stdout); W32Widget *widget = (W32Widget*)GetWindowLongPtr(hwnd, GWLP_USERDATA); if (widget && widget->wclass->eventproc) { widget->wclass->eventproc(widget, hwnd, uMsg, wParam, lParam);