- Timestamp:
- Jan 15, 2000, 6:27:20 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wbasenonclient.cpp
r2449 r2452 1 /* $Id: win32wbasenonclient.cpp,v 1.1 1 2000-01-15 16:37:12sandervl Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.12 2000-01-15 17:27:20 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 245 245 { 246 246 case HTCAPTION: 247 if (GetActiveWindow() != Win32Hwnd) 248 SetActiveWindow(); 249 250 if (GetActiveWindow() == Win32Hwnd) 247 { 248 Win32BaseWindow *topparent = GetTopParent(); 249 250 if (GetActiveWindow() != topparent->getWindowHandle()) 251 topparent->SetActiveWindow(); 252 253 if (GetActiveWindow() == topparent->getWindowHandle()) 251 254 SendInternalMessageA(WM_SYSCOMMAND,SC_MOVE+HTCAPTION,lParam); 252 255 break; 256 } 253 257 254 258 case HTSYSMENU: … … 650 654 GetInsideRect(rect ); 651 655 OffsetRect( rect, rectWindow.left, rectWindow.top); 652 if ((dwStyle & WS_CHILD) && getParent())653 ClientToScreen(getParent()->getWindowHandle(), (POINT *)rect );654 656 rect->right = rect->left + GetSystemMetrics(SM_CYCAPTION) - 1; 655 657 rect->bottom = rect->top + GetSystemMetrics(SM_CYCAPTION) - 1;
Note:
See TracChangeset
for help on using the changeset viewer.