ui/win32/button.c

changeset 880
9c99ff36513f
parent 841
651cf2c59dd9
child 895
f24d07479843
--- a/ui/win32/button.c	Tue Oct 28 13:23:54 2025 +0100
+++ b/ui/win32/button.c	Tue Oct 28 13:53:59 2025 +0100
@@ -51,10 +51,10 @@
     HWND hwnd = CreateWindow(
             "BUTTON",
             args->label,
-            WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,
+            WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON,
             0, 0, 100, 30,
             parent,
-            (HMENU)0,
+            (HMENU)1,
             hInstance,
             NULL);
     ui_win32_set_ui_font(hwnd);
@@ -85,6 +85,9 @@
 void ui_button_eventproc(W32Widget *widget, HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
     UiWidget *w = (UiWidget*)widget;
 
+    printf("button eventproc\n");
+    fflush(stdout);
+
     UiEvent e;
     e.obj = w->obj;
     e.document = e.obj->ctx->document;

mercurial