Changeset 8689 for trunk/src/user32/windowmsg.cpp
- Timestamp:
- Jun 15, 2002, 7:17:17 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/windowmsg.cpp
r7801 r8689 1 /* $Id: windowmsg.cpp,v 1.3 3 2002-02-05 17:59:02sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.34 2002-06-15 17:17:17 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 41 41 LONG WIN32API DispatchMessageA(const MSG * msg) 42 42 { 43 dprintf2(("DispatchMessageA %x %x %x %x %x", msg->hwnd, msg->message, msg->wParam, msg->lParam, msg->time));44 return OSLibWinDispatchMsg((MSG *)msg);43 dprintf2(("DispatchMessageA %x %x %x %x %x", msg->hwnd, msg->message, msg->wParam, msg->lParam, msg->time)); 44 return OSLibWinDispatchMsg((MSG *)msg); 45 45 } 46 46 //****************************************************************************** … … 48 48 LONG WIN32API DispatchMessageW( const MSG * msg) 49 49 { 50 dprintf2(("DispatchMessageW %x %x %x %x %x", msg->hwnd, msg->message, msg->wParam, msg->lParam, msg->time));51 return OSLibWinDispatchMsg((MSG *)msg, TRUE);50 dprintf2(("DispatchMessageW %x %x %x %x %x", msg->hwnd, msg->message, msg->wParam, msg->lParam, msg->time)); 51 return OSLibWinDispatchMsg((MSG *)msg, TRUE); 52 52 } 53 53 //****************************************************************************** … … 55 55 BOOL WIN32API TranslateMessage(const MSG *msg) 56 56 { 57 // check the message code58 if ( (msg->message < WM_KEYDOWN) ||59 (msg->message > WM_SYSKEYUP)||60 (msg->message == WM_CHAR) ||61 (msg->message == WM_DEADCHAR) )62 {63 SetLastError(ERROR_INVALID_PARAMETER);64 return FALSE;65 }57 // check the message code 58 if ( (msg->message < WM_KEYDOWN) || 59 (msg->message > WM_SYSKEYUP)|| 60 (msg->message == WM_CHAR) || 61 (msg->message == WM_DEADCHAR) ) 62 { 63 SetLastError(ERROR_INVALID_PARAMETER); 64 return FALSE; 65 } 66 66 67 // only WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, WM_SYSKEYUP68 // can go into TranslateMessage67 // only WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, WM_SYSKEYUP 68 // can go into TranslateMessage 69 69 70 return OSLibWinTranslateMessage((MSG *)msg);70 return OSLibWinTranslateMessage((MSG *)msg); 71 71 } 72 72 //****************************************************************************** … … 74 74 BOOL WIN32API GetMessageA( LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax) 75 75 { 76 BOOL ret;76 BOOL ret; 77 77 78 78 dprintf2(("GetMessageA %x %x-%x", hwnd, uMsgFilterMin, uMsgFilterMax)); … … 86 86 BOOL WIN32API GetMessageW( LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax) 87 87 { 88 BOOL ret;88 BOOL ret; 89 89 90 90 dprintf2(("GetMessageW %x %x-%x", hwnd, uMsgFilterMin, uMsgFilterMax)); … … 98 98 UINT uMsgFilterMax, UINT fuRemoveMsg) 99 99 { 100 BOOL fFoundMsg;100 BOOL fFoundMsg; 101 101 102 102 dprintf2(("PeekMessageA %x %d-%d %d", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg)); … … 117 117 UINT uMsgFilterMax, UINT fuRemoveMsg) 118 118 { 119 BOOL fFoundMsg;119 BOOL fFoundMsg; 120 120 121 121 dprintf2(("PeekMessageW %x %d-%d %d", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg)); … … 143 143 LPARAM WIN32API SetMessageExtraInfo(LPARAM lParam) 144 144 { 145 dprintf(("USER32: SetMessageExtraInfo %x", lParam));146 return SetThreadMessageExtraInfo(lParam);145 dprintf(("USER32: SetMessageExtraInfo %x", lParam)); 146 return SetThreadMessageExtraInfo(lParam); 147 147 } 148 148 //****************************************************************************** … … 150 150 DWORD WIN32API GetMessagePos(void) 151 151 { 152 DWORD pos;152 DWORD pos; 153 153 154 154 pos = OSLibWinGetMessagePos(); … … 195 195 UINT WIN32API RegisterWindowMessageA(LPCSTR lpString) 196 196 { 197 UINT rc;197 UINT rc; 198 198 199 199 rc = GlobalAddAtomA(lpString); … … 213 213 BOOL WIN32API SetMessageQueue(int cMessagesMax) 214 214 { 215 dprintf(("USER32: SetMessageQueue\n"));216 return(TRUE);215 dprintf(("USER32: SetMessageQueue\n")); 216 return(TRUE); 217 217 } 218 218 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.