ui/win32/grid.c

changeset 894
5e53ef72a5d3
parent 892
0fbaac4aafc8
equal deleted inserted replaced
893:32b334db5f8b 894:5e53ef72a5d3
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