Mercurial > dwindows
changeset 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 |
files | os2/dw.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Wed Mar 24 00:05:39 2004 +0000 +++ b/os2/dw.c Wed Mar 24 07:37:31 2004 +0000 @@ -2618,6 +2618,9 @@ */ WinShowWindow(hWnd, FALSE); + if(mybox->items) + WinSetWindowPos(mybox->items[0].hwnd, HWND_TOP, 0, 0, SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), SWP_MOVE | SWP_SIZE); + _do_resize(mybox, SHORT1FROMMP(mp2), SHORT2FROMMP(mp2)); WinShowWindow(hWnd, TRUE); @@ -2639,7 +2642,7 @@ mybox->flags = 0; } - if(mybox && (swp->fl & SWP_MAXIMIZE)) + if(mybox && (swp->fl & (SWP_MAXIMIZE | SWP_RESTORE))) { int z; SWP swp2;