Changeset 10033 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Apr 24, 2003, 3:59:15 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.