- Timestamp:
- Apr 24, 2003, 3:59:15 PM (22 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r9526 r10033 1 /* $Id: win32dlg.cpp,v 1.8 0 2002-12-18 14:04:24 sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.81 2003-04-24 13:59:14 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 27 27 #include <math.h> 28 28 #include <unicode.h> 29 #include "user32api.h" 29 30 30 31 #define DBG_LOCALLOG DBG_win32dlg … … 34 35 35 36 #define GET_SHORT(ptr) (*(SHORT *)(ptr)) 37 36 38 37 39 //****************************************************************************** … … 1137 1139 /* Windows sets the focus to the dialog itself in EndDialog */ 1138 1140 1141 #ifdef __WIN32OS2__ 1142 if (::IsChild(hwnd, GetFocus())) 1143 { 1144 ::SetFocus( hwnd ); 1145 //SvL: Enable the owner if the focus is on one of its children. 1146 // If we don't, then PM will switch focus to another app since 1147 // we hide the window below (hidden windows cannot have focus) 1148 HWND owner = ::GetWindow( hwnd, GW_OWNER); 1149 if(owner) 1150 ::EnableWindow(owner, TRUE); 1151 } 1152 #else 1139 1153 if (::IsChild(hwnd, GetFocus())) 1140 1154 ::SetFocus( hwnd ); 1155 #endif 1141 1156 1142 1157 /* Don't have to send a ShowWindow(SW_HIDE), just do -
trunk/src/user32/win32wbase.cpp
r10031 r10033 1 /* $Id: win32wbase.cpp,v 1.36 7 2003-04-23 18:00:59sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.368 2003-04-24 13:59:14 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 48 48 #include <custombuild.h> 49 49 #include "win32wbase.h" 50 #include "win32wfake.h" 50 51 #include "wndmsg.h" 51 52 #include "oslibwin.h" … … 1143 1144 MAKELONG( lastHitTestVal, msg->message) ); 1144 1145 1145 dprintf2(("WM_MOUSEACTIVATE returned %d ", ret));1146 dprintf2(("WM_MOUSEACTIVATE returned %d foreground %x top %x", ret, GetForegroundWindow(), hwndTop)); 1146 1147 #if 0 1147 1148 if ((ret == MA_ACTIVATEANDEAT) || (ret == MA_NOACTIVATEANDEAT)) … … 1157 1158 1158 1159 //SvL: Calling OSLibSetActiveWindow(hwndTop); causes focus problems 1159 if (win32top && !win32top->isFakeWindow()) {1160 if (win32top) { 1160 1161 //Must use client window handle (not frame!!) 1161 1162 SetFocus(win32top->getWindowHandle()); … … 2625 2626 NotifyFrameChanged(&wpos, &oldClientRect); 2626 2627 } 2627 if(!fShowWindow && !(getStyle() & WS_MINIMIZE) && !(fuFlags & (SWP_NOSIZE | SWP_NOMOVE)))2628 if(!fShowWindow && !(getStyle() & (WS_MINIMIZE|WS_MAXIMIZE)) && !(fuFlags & (SWP_NOSIZE | SWP_NOMOVE))) 2628 2629 { 2629 2630 //Restore position always changes when the window position is changed … … 2700 2701 NotifyFrameChanged(&wpos, &oldClientRect); 2701 2702 } 2702 if(!fShowWindow && !(getStyle() & WS_MINIMIZE))2703 if(!fShowWindow && !(getStyle() & (WS_MINIMIZE|WS_MAXIMIZE))) 2703 2704 { 2704 2705 //Restore position always changes when the window position is changed … … 3617 3618 } 3618 3619 //****************************************************************************** 3619 //WM_ENABLE is sent to hwnd, but not to it 's children (as it should be)3620 //WM_ENABLE is sent to hwnd, but not to its children (as it should be) 3620 3621 //****************************************************************************** 3621 3622 BOOL Win32BaseWindow::EnableWindow(BOOL fEnable) … … 4115 4116 } 4116 4117 // dprintf2(("Win32BaseWindow::GetWindowFromOS2Handle: not an Odin os2 window %x", hwndOS2)); 4118 4119 //Now check if it's a fake window 4120 Win32FakeWindow *window = Win32FakeWindow::GetWindowFromOS2Handle(hwndOS2); 4121 if(window) { 4122 return window; 4123 } 4117 4124 return 0; 4118 4125 } -
trunk/src/user32/win32wfake.cpp
r10031 r10033 1 /* $Id: win32wfake.cpp,v 1. 3 2003-04-23 18:01:01sandervl Exp $ */1 /* $Id: win32wfake.cpp,v 1.4 2003-04-24 13:59:15 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Fake Window Class for OS/2 … … 251 251 DebugInt3(); 252 252 } 253 dprintf (("Win32FakeWindow::GetWindowFromOS2Handle(%x) -> null", hwndOS2));253 dprintf2(("Win32FakeWindow::GetWindowFromOS2Handle(%x) -> null", hwndOS2)); 254 254 return NULL; 255 255 }
Note:
See TracChangeset
for help on using the changeset viewer.