Changeset 1495 for trunk/src/user32/oslibmsg.cpp
- Timestamp:
- Oct 28, 1999, 8:22:31 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsg.cpp
r1307 r1495 1 /* $Id: oslibmsg.cpp,v 1. 4 1999-10-15 10:03:14sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.5 1999-10-28 18:22:26 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 37 37 } MSGTRANSTAB, *PMSGTRANSTAB; 38 38 39 #define MAX_MSGTRANSTAB 1 239 #define MAX_MSGTRANSTAB 15 40 40 MSGTRANSTAB MsgTransTab[MAX_MSGTRANSTAB] = { 41 41 0x0000, 0x0000, // WM_NULL, WM_NULL 42 0x0024, 0x0113, // WM_TIMER, WM_TIMER 43 0x0029, 0x0010, // WM_CLOSE, WM_CLOSE 44 0x002a, 0x0012, // WM_QUIT, WM_QUIT 42 45 0x0070, 0x0200, // WM_MOUSEMOVE, WM_MOUSEMOVE 43 46 0x0071, 0x0201, // WM_BUTTON1DOWN, WM_LBUTTONDOWN … … 131 134 void OSLibWinPostQuitMessage(ULONG nExitCode) 132 135 { 133 WinPostQueueMsg(NULLHANDLE, WM_QUIT, (MPARAM)nExitCode, 0); 136 APIRET rc; 137 138 rc = WinPostQueueMsg(NULLHANDLE, WM_QUIT, (MPARAM)nExitCode, 0); 139 dprintf(("WinPostQueueMsg %d returned %d", nExitCode, rc)); 134 140 } 135 141 //****************************************************************************** … … 137 143 LONG OSLibWinDispatchMsg(MSG *msg, BOOL isUnicode) 138 144 { 145 BOOL eaten = 0; 146 139 147 //TODO: What to do if app changed msg? (translate) 140 148 // WinToOS2MsgTranslate(msg, &qmsg, isUnicode); 149 150 //SvL: Some apps use PeeKMessage(remove) & DispatchMessage instead of 151 // GetMessage/DispatchMessage 152 if (MsgThreadPtr->msg == WM_TIMER) 153 eaten = TIMER_HandleTimer (MsgThreadPtr); 154 155 if(eaten) return 0; 141 156 142 157 return (LONG)WinDispatchMsg(GetThreadHAB(), MsgThreadPtr);
Note:
See TracChangeset
for help on using the changeset viewer.