Changeset 2257 for trunk/src/user32/oslibmsgtranslate.cpp
- Timestamp:
- Dec 29, 1999, 11:54:04 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsgtranslate.cpp
r2250 r2257 1 /* $Id: oslibmsgtranslate.cpp,v 1. 5 1999-12-29 14:37:16 sandervlExp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.6 1999-12-29 22:54:01 cbratschi Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 119 119 winMsg->time = os2Msg->time; 120 120 winMsg->pt.x = os2Msg->ptl.x; 121 winMsg->pt.y = ScreenHeight - os2Msg->ptl.y - 1;121 winMsg->pt.y = mapScreenY(os2Msg->ptl.y); 122 122 if(win32wnd) //==0 for WM_CREATE 123 123 winMsg->hwnd = win32wnd->getWindowHandle(); … … 292 292 point.y = (*(POINTS *)&os2Msg->mp1).y; 293 293 ClientPoint.x = point.x; 294 ClientPoint.y = MapOS2ToWin32Y(os2Msg->hwnd, 1,point.y);294 ClientPoint.y = mapY(os2Msg->hwnd,point.y); 295 295 296 296 winMsg->message = WINWM_LBUTTONDOWN + (os2Msg->msg - WM_BUTTON1DOWN); … … 335 335 { 336 336 winMsg->wParam = (WPARAM)keystate; 337 winMsg->lParam = MAKELONG(SHORT1FROMMP(os2Msg->mp1), MapOS2ToWin32Y(win32wnd,SHORT2FROMMP(os2Msg->mp1)));337 winMsg->lParam = MAKELONG(SHORT1FROMMP(os2Msg->mp1),mapY(win32wnd,SHORT2FROMMP(os2Msg->mp1))); 338 338 } 339 339 //OS/2 Window coordinates -> Win32 Window coordinates … … 363 363 WinQueryPointerPos(HWND_DESKTOP, &pointl); 364 364 x = pointl.x; 365 y = ScreenHeight - y;365 y = mapScreenY(y); 366 366 } 367 367 switch(SHORT1FROMMP(os2Msg->mp1)) { … … 571 571 pt.y = (*(POINTS *)&os2Msg->mp1).y; 572 572 573 MapOS2ToWin32Point(OSLIB_HWND_DESKTOP,os2Msg->hwnd,&pt);573 mapOS2ToWin32Point(os2Msg->hwnd,OSLIB_HWND_DESKTOP,&pt); 574 574 winMsg->message = WINWM_NCHITTEST; 575 575 winMsg->wParam = 0; … … 580 580 case WM_CONTEXTMENU: 581 581 { 582 POINTLpt;582 OSLIBPOINT pt; 583 583 584 584 pt.x = (*(POINTS *)&os2Msg->mp1).x; 585 585 pt.y = (*(POINTS *)&os2Msg->mp1).y; 586 WinMapWindowPoints(os2Msg->hwnd,HWND_DESKTOP,&pt,1); 587 pt.y = WinQuerySysValue(HWND_DESKTOP,SV_CYSCREEN) - pt.y -1; 586 mapOS2ToWin32Point(os2Msg->hwnd,OSLIB_HWND_DESKTOP,&pt); 588 587 winMsg->message = WINWM_CONTEXTMENU; 589 588 winMsg->wParam = (WPARAM)win32wnd->getWindowHandle();
Note:
See TracChangeset
for help on using the changeset viewer.