ui/win32/grid.c

changeset 115
e57ca2747782
parent 112
c3f2f16fa4b8
--- a/ui/win32/grid.c	Sun Dec 07 20:00:33 2025 +0100
+++ b/ui/win32/grid.c	Sat Dec 13 15:58:58 2025 +0100
@@ -293,7 +293,9 @@
 
         child_x = col->pos + elm->layout.margin.left;
         child_y = row->pos + elm->layout.margin.top;
-        SetWindowPos(elm->widget->hwnd, NULL, child_x, child_y, child_width, child_height, SWP_NOZORDER);
+        SetWindowPos(elm->widget->hwnd, NULL, child_x, child_y, child_width, child_height, SWP_NOZORDER | SWP_NOACTIVATE);
+        InvalidateRect(elm->widget->hwnd, NULL, TRUE);
+        //UpdateWindow(elm->widget->hwnd);
         if (elm->widget->layout) {
             elm->widget->layout(elm->widget->layoutmanager, child_width, child_height);
         }

mercurial