Changeset 3662 for trunk/src/user32/win32wbasenonclient.cpp
- Timestamp:
- Jun 7, 2000, 4:51:33 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbasenonclient.cpp
r3625 r3662 1 /* $Id: win32wbasenonclient.cpp,v 1.2 3 2000-05-28 16:43:47sandervl Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.24 2000-06-07 14:51:32 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 211 211 } 212 212 213 pt.x -= rectWindow.left; 214 pt.y -= rectWindow.top; 215 SCROLL_HandleScrollEvent(Win32Hwnd,0,MAKELONG(pt.x,pt.y),scrollbar,WM_LBUTTONDOWN); 213 ScreenToClient(getWindowHandle(), &pt); 214 pt.x += rectClient.left; 215 pt.y += rectClient.top; 216 217 SCROLL_HandleScrollEvent(getWindowHandle(),0,MAKELONG(pt.x,pt.y),scrollbar,WM_LBUTTONDOWN); 216 218 if (GetCapture() != Win32Hwnd) return; 217 219 do … … 224 226 case WM_LBUTTONUP: 225 227 case WM_MOUSEMOVE: 226 pt.x = msg.pt.x-rectWindow.left; 227 pt.y = msg.pt.y-rectWindow.top; 228 pt.x = msg.pt.x; 229 pt.y = msg.pt.y; 230 ScreenToClient(getWindowHandle(), &pt); 231 pt.x += rectClient.left; 232 pt.y += rectClient.top; 228 233 msg.lParam = MAKELONG(pt.x,pt.y); 229 234 … … 262 267 { 263 268 //SvL: Calling topparent->SetActiveWindow() causes focus problems 264 OSLibWinSetFocus(topparent->getOS2FrameWindowHandle()); 269 // topparent->SetActiveWindow(); 270 OSLibWinSetFocus(topparent->getOS2WindowHandle()); 265 271 } 266 272 267 273 if (GetActiveWindow() == topparent->getWindowHandle()) 268 274 SendInternalMessageA(WM_SYSCOMMAND,SC_MOVE+HTCAPTION,lParam); 275 else dprintf(("ACtive window (%x) != toplevel wnd %x", OSLibWinQueryActiveWindow(), topparent->getWindowHandle())); 269 276 break; 270 277 } … … 425 432 LONG Win32BaseWindow::HandleNCHitTest(POINT pt) 426 433 { 427 RECT rect = rectWindow;434 RECT rect; 428 435 429 436 if (dwStyle & WS_MINIMIZE) return HTCAPTION; 437 438 GetWindowRect(getWindowHandle(), &rect); 430 439 431 440 if (!PtInRect(&rect,pt)) return HTNOWHERE; … … 1007 1016 //only redraw caption 1008 1017 GetRgnBox(clip,&rectClip); 1018 #if 1 1009 1019 //SvL: I'm getting paint problems when clipping a dc created in GetDCEx 1010 1020 // with a region that covers the entire window (RealPlayer 7 Update 1) … … 1016 1026 rectClip = rect; 1017 1027 } 1028 #endif 1018 1029 } 1019 1030 else … … 1122 1133 } 1123 1134 1124 ReleaseDC( Win32Hwnd,hdc);1135 ReleaseDC(getWindowHandle(),hdc); 1125 1136 IncreaseLogCount(); 1126 1137 dprintf(("**DoNCPaint %x DONE", getWindowHandle())); … … 1305 1316 1306 1317 case SC_TASKLIST: 1307 OSLibWinShowTaskList(getOS2 FrameWindowHandle());1318 OSLibWinShowTaskList(getOS2WindowHandle()); 1308 1319 break; 1309 1320
Note:
See TracChangeset
for help on using the changeset viewer.