Changeset 5606 for trunk/src/user32/oslibmsg.cpp
- Timestamp:
- Apr 27, 2001, 7:36:39 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsg.cpp
r5137 r5606 1 /* $Id: oslibmsg.cpp,v 1.3 6 2001-02-15 00:33:01sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.37 2001-04-27 17:36:37 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 67 67 WM_HITTEST, WINWM_NCHITTEST, 68 68 69 //todo: not always right if mouse msg turns out to be for the client window 70 WM_MOUSEMOVE, WINWM_NCMOUSEMOVE, 71 WM_BUTTON1DOWN, WINWM_NCLBUTTONDOWN, 72 WM_BUTTON1UP, WINWM_NCLBUTTONUP, 73 WM_BUTTON1DBLCLK, WINWM_NCLBUTTONDBLCLK, 74 WM_BUTTON2DOWN, WINWM_NCRBUTTONDOWN, 75 WM_BUTTON2UP, WINWM_NCRBUTTONUP, 76 WM_BUTTON2DBLCLK, WINWM_NCRBUTTONDBLCLK, 77 WM_BUTTON3DOWN, WINWM_NCMBUTTONDOWN, 78 WM_BUTTON3UP, WINWM_NCMBUTTONUP, 79 WM_BUTTON3DBLCLK, WINWM_NCMBUTTONDBLCLK, 80 69 81 //TODO: Needs better translation! 70 82 WM_CHAR, WINWM_KEYDOWN, … … 82 94 83 95 // 96 //todo: not always right if mouse msg turns out to be for the nonclient window 84 97 WM_MOUSEMOVE, WINWM_MOUSEMOVE, 85 98 WM_BUTTON1DOWN, WINWM_LBUTTONDOWN, … … 341 354 } 342 355 343 OS2ToWinMsgTranslate((PVOID)teb, &os2msg, pMsg, isUnicode, (fRemove & PM_REMOVE_W) ? MSG_REMOVE : MSG_NOREMOVE); 356 if(OS2ToWinMsgTranslate((PVOID)teb, &os2msg, pMsg, isUnicode, (fRemove & PM_REMOVE_W) ? MSG_REMOVE : MSG_NOREMOVE) == FALSE) 357 { 358 //unused PM message; dispatch immediately and grab next one 359 dprintf2(("OSLibWinPeekMsg: Untranslated message; dispatched immediately")); 360 rc = WinPeekMsg(teb->o.odin.hab, &os2msg, hwndOS2, TranslateWinMsg(uMsgFilterMin, TRUE), 361 TranslateWinMsg(uMsgFilterMax, FALSE), PM_REMOVE); 362 WinDispatchMsg(teb->o.odin.hab, &os2msg); 363 return OSLibWinPeekMsg(pMsg, hwnd, uMsgFilterMin, uMsgFilterMax, 364 fRemove, isUnicode); 365 } 344 366 //TODO: This is not safe! There's no guarantee this message will be dispatched and it might overwrite a previous message 345 367 if(fRemove & PM_REMOVE_W) {
Note:
See TracChangeset
for help on using the changeset viewer.