Changeset 8301 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Apr 24, 2002, 10:56:17 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r8126 r8301 1 /* $Id: oslibwin.cpp,v 1.11 7 2002-03-27 10:56:24sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.118 2002-04-24 08:56:17 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 542 542 BOOL OSLibWinMinimizeWindow(HWND hwnd) 543 543 { 544 return WinSetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_MINIMIZE); 544 /* @@PF The reason for this weird minimize algorithm is that we are not fully 545 using PM for minimization. I.e. we respect all PM messages yet we do mess 546 so much with some messages that minimization is based partly on vodoo. 547 That is if you try minimize and deactivate in one call it will fail. 548 Here we deactivate yourselves and give focus to next window that is 549 on desktop, this func also works with MDI */ 550 551 BOOL rc; 552 553 rc = WinSetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_MINIMIZE); 554 if (rc) { 555 rc = WinSetWindowPos(hwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_DEACTIVATE | SWP_ZORDER); 556 } 557 return (rc); 545 558 } 546 559 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.