Changeset 5935 for trunk/src/user32/win32wbasenonclient.cpp
- Timestamp:
- Jun 9, 2001, 4:50:26 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbasenonclient.cpp
r5404 r5935 1 /* $Id: win32wbasenonclient.cpp,v 1.3 0 2001-03-30 11:14:36sandervl Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.31 2001-06-09 14:50:22 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 25 25 #include <win32wbase.h> 26 26 #include "wndmsg.h" 27 #include "pmframe.h"28 27 #include "oslibwin.h" 29 28 #include "oslibmsg.h" … … 37 36 #include "win32wdesktop.h" 38 37 #include "controls.h" 38 #include "pmwindow.h" 39 39 #include <menu.h> 40 40 … … 262 262 case HTCAPTION: 263 263 { 264 Win32BaseWindow *topparent = GetTopParent();264 HWND hwndTopParent = GetTopParent(); 265 265 266 266 if((getStyle() & WS_CHILD) && !(getExStyle() & WS_EX_MDICHILD)) 267 267 { 268 if (GetActiveWindow() != topparent->getWindowHandle())268 if (GetActiveWindow() != hwndTopParent) 269 269 { 270 270 //SvL: Calling topparent->SetActiveWindow() causes focus problems 271 topparent->SetActiveWindow();271 ::SetActiveWindow(hwndTopParent); 272 272 //// OSLibWinSetFocus(topparent->getOS2WindowHandle()); 273 273 } 274 if (GetActiveWindow() == topparent->getWindowHandle())274 if (GetActiveWindow() == hwndTopParent) 275 275 SendInternalMessageA(WM_SYSCOMMAND,SC_MOVE+HTCAPTION,lParam); 276 else dprintf(("ACtive window (%x) != toplevel wnd %x", OSLibWinQueryActiveWindow(), topparent->getWindowHandle()));276 else dprintf(("ACtive window (%x) != toplevel wnd %x", OSLibWinQueryActiveWindow(), hwndTopParent)); 277 277 } 278 278 else { 279 279 SetActiveWindow(); 280 if (GetActiveWindow() == topparent->getWindowHandle())280 if (GetActiveWindow() == hwndTopParent) 281 281 SendInternalMessageA(WM_SYSCOMMAND,SC_MOVE+HTCAPTION,lParam); 282 282 else dprintf(("ACtive window (%x) != wnd %x", OSLibWinQueryActiveWindow(), getWindowHandle()));
Note:
See TracChangeset
for help on using the changeset viewer.