Changeset 2483 for trunk/src/user32/oslibmsgtranslate.cpp
- Timestamp:
- Jan 20, 2000, 5:48:58 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsgtranslate.cpp
r2469 r2483 1 /* $Id: oslibmsgtranslate.cpp,v 1.1 5 2000-01-18 20:10:40 sandervlExp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.16 2000-01-20 16:48:55 cbratschi Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 208 208 hittest = win32wnd->MsgHitTest(winMsg->pt.x, winMsg->pt.y); 209 209 210 if (IsNCMouseMsg(win32wnd)) 210 if (IsNCMouseMsg(win32wnd)) 211 211 { 212 212 winMsg->message = WINWM_NCMOUSEMOVE; 213 213 winMsg->wParam = (WPARAM)hittest; 214 214 winMsg->lParam = MAKELONG(winMsg->pt.x,winMsg->pt.y); 215 } 215 } 216 216 else 217 217 { … … 234 234 winMsg->message = WINWM_NCACTIVATE; 235 235 winMsg->wParam = SHORT1FROMMP(os2Msg->mp1); 236 236 return TRUE; 237 237 } 238 238 case WM_WINDOWPOSCHANGED: 239 239 { 240 241 240 //todo: proper translation 241 return FALSE; 242 242 } 243 243 } … … 324 324 325 325 if(pswp->fl & (SWP_MOVE | SWP_SIZE)) { 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 326 dprintf(("Set client rectangle to (%d,%d)(%d,%d)", swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy)); 327 win32wnd->setClientRect(swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy); 328 329 thdb->wp.hwnd = win32wnd->getWindowHandle(); 330 if ((pswp->fl & SWP_ZORDER) && (pswp->hwndInsertBehind > HWND_BOTTOM)) 331 { 332 Win32BaseWindow *wndAfter = Win32BaseWindow::GetWindowFromOS2Handle(pswp->hwndInsertBehind); 333 if(wndAfter) 334 thdb->wp.hwndInsertAfter = wndAfter->getWindowHandle(); 335 } 336 337 PRECT lpRect = win32wnd->getWindowRect(); 338 //SvL: Only send it when the client has changed & the frame hasn't 339 // If the frame size/position has changed, pmframe.cpp will send 340 // this message 341 if(lpRect->right == thdb->wp.x+thdb->wp.cx && lpRect->bottom == thdb->wp.y+thdb->wp.cy) { 342 winMsg->message = WINWM_WINDOWPOSCHANGED; 343 winMsg->lParam = (LPARAM)&thdb->wp; 344 break; 345 } 346 346 } 347 347 goto dummymessage; … … 447 447 winMsg->wParam = (WPARAM)hittest; 448 448 winMsg->lParam = MAKELONG(winMsg->pt.x,winMsg->pt.y); 449 } 449 } 450 450 else 451 451 { … … 672 672 673 673 case WM_CONTEXTMENU: 674 winMsg->message = WINWM_CONTEXTMENU; 675 winMsg->wParam = win32wnd->getWindowHandle(); 676 winMsg->lParam = MAKELONG(winMsg->pt.x,winMsg->pt.y); 677 break; 678 674 679 case WM_INITMENU: 675 680 case WM_MENUSELECT:
Note:
See TracChangeset
for help on using the changeset viewer.