ui/win32/grid.c

changeset 115
e57ca2747782
parent 112
c3f2f16fa4b8
equal deleted inserted replaced
114:3da24640513a 115:e57ca2747782
291 child_height = elm->layout.preferred_height; 291 child_height = elm->layout.preferred_height;
292 } 292 }
293 293
294 child_x = col->pos + elm->layout.margin.left; 294 child_x = col->pos + elm->layout.margin.left;
295 child_y = row->pos + elm->layout.margin.top; 295 child_y = row->pos + elm->layout.margin.top;
296 SetWindowPos(elm->widget->hwnd, NULL, child_x, child_y, child_width, child_height, SWP_NOZORDER); 296 SetWindowPos(elm->widget->hwnd, NULL, child_x, child_y, child_width, child_height, SWP_NOZORDER | SWP_NOACTIVATE);
297 InvalidateRect(elm->widget->hwnd, NULL, TRUE);
298 //UpdateWindow(elm->widget->hwnd);
297 if (elm->widget->layout) { 299 if (elm->widget->layout) {
298 elm->widget->layout(elm->widget->layoutmanager, child_width, child_height); 300 elm->widget->layout(elm->widget->layoutmanager, child_width, child_height);
299 } 301 }
300 } 302 }
301 303

mercurial