Changeset 1831 for trunk/src/user32/oslibmsg.cpp
- Timestamp:
- Nov 24, 1999, 8:32:23 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsg.cpp
r1688 r1831 1 /* $Id: oslibmsg.cpp,v 1.1 0 1999-11-10 14:16:45sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.11 1999-11-24 19:32:21 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 10 10 * 11 11 * TODO: Simply copy for now. Need to make a real translation 12 * TODO: Filter translation isn't correct for posted messages 12 13 * 13 14 */ … … 124 125 void OS2ToWinMsgTranslate(QMSG *os2Msg, MSG *winMsg, BOOL isUnicode) 125 126 { 127 POSTMSG_PACKET *packet; 126 128 int i; 127 129 … … 129 131 winMsg->hwnd = Win32Window::OS2ToWin32Handle(os2Msg->hwnd); 130 132 131 if(os2Msg->msg >= WIN32APP_USERMSGBASE) { 132 winMsg->message = os2Msg->msg - WIN32APP_USERMSGBASE; 133 if(os2Msg->msg == WIN32APP_POSTMSG) { 134 packet = (POSTMSG_PACKET *)os2Msg->mp2; 135 if(packet && (ULONG)os2Msg->mp1 == WIN32PM_MAGIC) { 136 winMsg->message = packet->Msg; 137 winMsg->wParam = packet->wParam; 138 winMsg->lParam = packet->lParam; 139 } 133 140 return; 134 141 } … … 150 157 ULONG TranslateWinMsg(ULONG msg) 151 158 { 159 POSTMSG_PACKET *packet; 152 160 THDB *thdb; 153 161 … … 157 165 } 158 166 159 if(msg >= WIN WM_USER)160 return msg + WIN32APP_USERMSGBASE;167 if(msg >= WIN32APP_USERMSGBASE) 168 return WIN32APP_POSTMSG; 161 169 162 170 for(int i=0;i<MAX_MSGTRANSTAB;i++)
Note:
See TracChangeset
for help on using the changeset viewer.