comparison os2/dw.c @ 536:81e29ea5dc2f

Almost have the new layout code fixed, just seeing a small problem with vertical splitbars occasionally.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 24 Mar 2004 07:37:31 +0000
parents b0b5b880513a
children a3b2e2244c18
comparison
equal deleted inserted replaced
535:b0b5b880513a 536:81e29ea5dc2f
2616 /* Hide the window when recalculating to reduce 2616 /* Hide the window when recalculating to reduce
2617 * CPU load. 2617 * CPU load.
2618 */ 2618 */
2619 WinShowWindow(hWnd, FALSE); 2619 WinShowWindow(hWnd, FALSE);
2620 2620
2621 if(mybox->items)
2622 WinSetWindowPos(mybox->items[0].hwnd, HWND_TOP, 0, 0, SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), SWP_MOVE | SWP_SIZE);
2623
2621 _do_resize(mybox, SHORT1FROMMP(mp2), SHORT2FROMMP(mp2)); 2624 _do_resize(mybox, SHORT1FROMMP(mp2), SHORT2FROMMP(mp2));
2622 2625
2623 WinShowWindow(hWnd, TRUE); 2626 WinShowWindow(hWnd, TRUE);
2624 } 2627 }
2625 } 2628 }
2637 if(!mybox->titlebar && mybox->hwndtitle) 2640 if(!mybox->titlebar && mybox->hwndtitle)
2638 WinSetParent(mybox->hwndtitle, HWND_OBJECT, FALSE); 2641 WinSetParent(mybox->hwndtitle, HWND_OBJECT, FALSE);
2639 mybox->flags = 0; 2642 mybox->flags = 0;
2640 } 2643 }
2641 2644
2642 if(mybox && (swp->fl & SWP_MAXIMIZE)) 2645 if(mybox && (swp->fl & (SWP_MAXIMIZE | SWP_RESTORE)))
2643 { 2646 {
2644 int z; 2647 int z;
2645 SWP swp2; 2648 SWP swp2;
2646 2649
2647 WinQueryWindowPos(swp->hwnd, &swp2); 2650 WinQueryWindowPos(swp->hwnd, &swp2);