Changeset 20134
- Timestamp:
- Jan 2, 2003, 6:02:06 PM (22 years ago)
- Location:
- tags/trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/user32/oslibwin.cpp ¶
r20133 r20134 1 /* $Id: oslibwin.cpp,v 1.13 5 2003-01-02 15:21:58sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.136 2003-01-02 17:02:04 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 734 734 //SvL: Must also deactivate the window when hiding it or else focus won't 735 735 // change. (NOTE: make sure this doesn't cause regressions (01-02-2003) 736 if ( fuFlags & SWP_HIDEWINDOW_W) flags |= SWP_HIDE|SWP_DEACTIVATE; 736 if ( fuFlags & SWP_HIDEWINDOW_W) { 737 flags |= SWP_HIDE|SWP_DEACTIVATE; 738 } 737 739 738 740 if ( fuFlags & SWP_NOSENDCHANGING_W) flags |= SWP_NOADJUST; -
TabularUnified tags/trunk/src/user32/win32wbase.cpp ¶
r20119 r20134 1 /* $Id: win32wbase.cpp,v 1.3 49 2003-01-01 14:29:44sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.350 2003-01-02 17:02:05 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2580 2580 swp.hwnd = OS2HwndFrame; 2581 2581 2582 //SvL: Must also deactivate the window when hiding it or else focus won't 2583 // change. (NOTE: make sure this doesn't cause regressions (01-02-2003) 2584 if((swp.fl & (SWPOS_HIDE|SWPOS_DEACTIVATE)) == (SWPOS_HIDE|SWPOS_DEACTIVATE)) 2585 { 2586 //we must make sure the owner is not disabled or else the focus will 2587 //be switched to the wrong window 2588 Win32BaseWindow *topOwner; 2589 2590 if(getOwner() == NULL) { 2591 windowDesktop->addRef(); 2592 topOwner = windowDesktop; 2593 } 2594 else topOwner = GetWindowFromHandle(getOwner()->GetTopParent()); 2595 2596 if(topOwner != NULL) { 2597 DWORD dwStyle = topOwner->GetWindowLong(GWL_STYLE, FALSE); 2598 if(dwStyle & WS_DISABLED) { 2599 swp.fl &= ~SWPOS_DEACTIVATE; 2600 } 2601 } 2602 else DebugInt3(); 2603 } 2604 2582 2605 if(fuFlags & SWP_SHOWWINDOW && !IsWindowVisible(getWindowHandle())) { 2583 2606 setStyle(getStyle() | WS_VISIBLE); -
TabularUnified tags/trunk/src/user32/window.cpp ¶
r20132 r20134 1 /* $Id: window.cpp,v 1.1 29 2003-01-02 15:21:45sandervl Exp $ */1 /* $Id: window.cpp,v 1.130 2003-01-02 17:02:06 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 756 756 BOOL activate, ret; 757 757 TEB *teb; 758 758 759 dprintf(("SetFocus %x", hwnd)); 759 760 teb = GetThreadTEB(); 760 761 if(teb == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.