ui/win32/grid.c

changeset 892
0fbaac4aafc8
parent 891
0804fc9298f6
equal deleted inserted replaced
891:0804fc9298f6 892:0fbaac4aafc8
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); 297 InvalidateRect(elm->widget->hwnd, NULL, TRUE);
298 UpdateWindow(elm->widget->hwnd); 298 //UpdateWindow(elm->widget->hwnd);
299 if (elm->widget->layout) { 299 if (elm->widget->layout) {
300 elm->widget->layout(elm->widget->layoutmanager, child_width, child_height); 300 elm->widget->layout(elm->widget->layoutmanager, child_width, child_height);
301 } 301 }
302 } 302 }
303 303

mercurial