Changeset 10216 for trunk/src/user32/oslibmsg.cpp
- Timestamp:
- Aug 8, 2003, 3:30:22 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/oslibmsg.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsg.cpp
r10212 r10216 1 /* $Id: oslibmsg.cpp,v 1.7 4 2003-08-06 11:00:44sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.75 2003-08-08 13:30:19 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 236 236 // Check for a queued WM_CHAR message (e.g. inserted by TranslateMessage) 237 237 //****************************************************************************** 238 BOOL ReturnQueuedWMCHAR(LPMSG pMsg, TEB *teb, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 238 BOOL ReturnQueuedWMCHAR(LPMSG pMsg, TEB *teb, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 239 239 BOOL isUnicode, BOOL fRemove) 240 240 { … … 251 251 return FALSE; 252 252 } 253 253 254 254 if(fRemove & PM_REMOVE_W) { 255 255 teb->o.odin.fTranslated = FALSE; … … 276 276 // call the keyboard hook here 277 277 // send keyboard messages to the registered hooks 278 if(fRemove & PM_REMOVE_W) 278 if(fRemove & PM_REMOVE_W) 279 279 { 280 280 switch (pMsg->message) … … 291 291 } 292 292 } 293 293 294 294 //GetMessageW and PeekMessageW expect the character code in UTF-16 295 295 //(we save it in ascii format) … … 298 298 CHAR charA; 299 299 WCHAR charW; 300 300 301 301 charA = pMsg->wParam; 302 302 MultiByteToWideChar(CP_ACP, 0, &charA, 1, &charW, 1); … … 400 400 goto continuegetmsg; 401 401 break; 402 case WINWM_CHAR: 403 case WINWM_SYSCHAR: 402 case WINWM_IME_CHAR: 404 403 // prevent from calling wrong DispatchMsg() (DBCS generated WM_CHAR) 405 404 memset( &teb->o.odin.winmsg, 0, sizeof( MSG )); … … 464 463 ULONG ulPMFilter; 465 464 466 for(int i=0;i<uMsgFilterMax-uMsgFilterMin+1;i++) 465 for(int i=0;i<uMsgFilterMax-uMsgFilterMin+1;i++) 467 466 { 468 467 rc = 0; … … 523 522 goto continuepeekmsg; 524 523 break; 525 case WINWM_CHAR: 526 case WINWM_SYSCHAR: 524 case WINWM_IME_CHAR: 527 525 // prevent from calling wrong DispatchMsg() (DBCS generated WM_CHAR) 528 526 memset( &teb->o.odin.winmsg, 0, sizeof( MSG ));
Note:
See TracChangeset
for help on using the changeset viewer.
