Changeset 17408
- Timestamp:
- Sep 27, 2001, 12:42:59 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/user32/windowmsg.cpp ¶
r17322 r17408 1 /* $Id: windowmsg.cpp,v 1. 29 2001-09-19 15:39:52 sandervlExp $ */1 /* $Id: windowmsg.cpp,v 1.30 2001-09-27 10:42:59 phaller Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 15 15 * 16 16 */ 17 18 #include <odin.h> 19 #include <odinwrap.h> 20 #include <os2sel.h> 21 17 22 #include <os2win.h> 18 23 #include <misc.h> … … 29 34 #include "dbglocal.h" 30 35 36 ODINDEBUGCHANNEL(USER32-WINDOWMSG) 37 38 31 39 //****************************************************************************** 32 40 //****************************************************************************** … … 52 60 //****************************************************************************** 53 61 //****************************************************************************** 54 BOOL WIN32API TranslateMessage( const MSG * msg) 55 { 56 return OSLibWinTranslateMessage((MSG *)msg); 62 BOOL WIN32API TranslateMessage(const MSG *msg) 63 { 64 // check the message code 65 if ( (msg->message < WM_KEYDOWN) || 66 (msg->message > WM_SYSKEYUP)|| 67 (msg->message == WM_CHAR) || 68 (msg->message == WM_DEADCHAR) ) 69 { 70 SetLastError(ERROR_INVALID_PARAMETER); 71 return FALSE; 72 } 73 74 // only WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, WM_SYSKEYUP 75 // can go into TranslateMessage 76 77 return OSLibWinTranslateMessage((MSG *)msg); 57 78 } 58 79 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.