Changeset 2200 for trunk/src/user32/windowmsg.cpp
- Timestamp:
- Dec 24, 1999, 7:42:46 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/windowmsg.cpp
r2084 r2200 1 /* $Id: windowmsg.cpp,v 1.1 0 1999-12-16 00:11:49sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.11 1999-12-24 18:39:13 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 21 21 #include <win.h> 22 22 #include <heapstring.h> 23 #include <handlemanager.h> 23 24 #include "oslibwin.h" 24 25 #include "oslibmsg.h" … … 45 46 //****************************************************************************** 46 47 //****************************************************************************** 47 BOOL WIN32API TranslateMessage( const MSG * arg1) 48 { 49 // return O32_TranslateMessage(arg1); 50 return TRUE; 48 BOOL WIN32API TranslateMessage( const MSG * msg) 49 { 50 return OSLibWinTranslateMessage((MSG *)msg); 51 51 } 52 52 //****************************************************************************** … … 70 70 71 71 fFoundMsg = OSLibWinPeekMsg(msg, 0, uMsgFilterMin, uMsgFilterMax, 72 (fuRemoveMsg & PM_REMOVE) ? 1 : 0, FALSE);72 fuRemoveMsg, FALSE); 73 73 if(fFoundMsg) { 74 if (msg->message == WM_QUIT && (fuRemoveMsg & (PM_REMOVE))) {74 if (msg->message == WM_QUIT && (fuRemoveMsg & PM_REMOVE)) { 75 75 //TODO: Post WM_QUERYENDSESSION message when WM_QUIT received and system is shutting down 76 76 } … … 991 991 { 992 992 DWORD queueStatus; 993 994 dprintf(("USER32:GetInputState()")); 993 BOOL rc; 994 995 995 queueStatus = OSLibWinQueryQueueStatus(); 996 996 997 return (queueStatus & (QS_KEY | QS_MOUSEBUTTON)) ? TRUE : FALSE; 997 rc = (queueStatus & (QS_KEY | QS_MOUSEBUTTON)) ? TRUE : FALSE; 998 dprintf(("USER32:GetInputState() returned %d", rc)); 999 return rc; 998 1000 } 999 1001 //****************************************************************************** … … 1032 1034 return WAIT_TIMEOUT; 1033 1035 } 1034 return O32_MsgWaitForMultipleObjects(nCount,pHandles,fWaitAll,dwMilliseconds,dwWakeMask); 1035 } 1036 //SvL: Call handlemanager function as we need to translate handles 1037 return HMMsgWaitForMultipleObjects(nCount,pHandles,fWaitAll,dwMilliseconds,dwWakeMask); 1038 }
Note:
See TracChangeset
for help on using the changeset viewer.