Changeset 9418 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Nov 20, 2002, 1:59:06 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r9345 r9418 1 /* $Id: win32wbase.cpp,v 1.34 2 2002-10-15 09:18:10sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.343 2002-11-20 12:59:06 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2344 2344 2345 2345 if (!(getStyle() & WS_MINIMIZE)) { 2346 SetWindowPos(HWND_TOP, newPos.left, newPos.top, newPos.right, newPos.bottom, LOWORD(swp) );2346 SetWindowPos(HWND_TOP, newPos.left, newPos.top, newPos.right, newPos.bottom, LOWORD(swp), TRUE); 2347 2347 } 2348 2348 else OSLibWinMinimizeWindow(getOS2FrameWindowHandle()); … … 2379 2379 } 2380 2380 //testestest 2381 2381 2382 END: 2382 2383 fMinMaxChange = FALSE; … … 2385 2386 //****************************************************************************** 2386 2387 //****************************************************************************** 2387 BOOL Win32BaseWindow::SetWindowPos(HWND hwndInsertAfter, int x, int y, int cx, int cy, UINT fuFlags) 2388 BOOL Win32BaseWindow::SetWindowPos(HWND hwndInsertAfter, int x, int y, int cx, 2389 int cy, UINT fuFlags, BOOL fShowWindow) 2388 2390 { 2389 2391 BOOL rc = FALSE; … … 2493 2495 OSLibWinQueryWindowPos(OS2HwndFrame, &swpOld); 2494 2496 } 2497 if((dwOldStyle & WS_MINIMIZE) && (getStyle() & WS_MINIMIZE)) 2498 {//don't allow size changes if the window is minimized 2499 //we will update the restore position at the end of this method 2500 if(!(wpos.flags & SWP_NOSIZE)) { 2501 wpos.flags |= SWP_NOSIZE; 2502 rectWindow.right = rectWindow.left + wpos.cx; 2503 rectWindow.bottom = rectWindow.top + wpos.cy; 2504 } 2505 } 2495 2506 2496 2507 if(getParent()) { … … 2505 2516 { 2506 2517 NotifyFrameChanged(&wpos, &oldClientRect); 2518 } 2519 if(!fShowWindow) 2520 { 2521 //Restore position always changes when the window position is changed 2522 dprintf(("Save new restore position (%d,%d)(%d,%d)", rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom)); 2523 windowpos.rcNormalPosition = rectWindow; 2507 2524 } 2508 2525 return TRUE; … … 2540 2557 } 2541 2558 dprintf (("WinSetWindowPos %x %x (%d,%d)(%d,%d) %x", swp.hwnd, swp.hwndInsertBehind, swp.x, swp.y, swp.cx, swp.cy, swp.fl)); 2559 2542 2560 rc = OSLibWinSetMultWindowPos(&swp, 1); 2543 2544 2561 if(rc == FALSE) 2545 2562 { … … 2552 2569 NotifyFrameChanged(&wpos, &oldClientRect); 2553 2570 } 2554 if(!(getStyle() & (WS_MAXIMIZE|WS_MINIMIZE))) { 2571 if(!fShowWindow) 2572 { 2555 2573 //Restore position always changes when the window position is changed 2556 2574 dprintf(("Save new restore position (%d,%d)(%d,%d)", rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom));
Note:
See TracChangeset
for help on using the changeset viewer.