Changeset 7211 for trunk/src/user32/oslibmsg.cpp
- Timestamp:
- Oct 26, 2001, 11:10:57 AM (24 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/oslibmsg.cpp (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsg.cpp
r7205 r7211 1 /* $Id: oslibmsg.cpp,v 1.4 6 2001-10-25 15:35:53phaller Exp $ */1 /* $Id: oslibmsg.cpp,v 1.47 2001-10-26 09:10:12 phaller Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 21 21 #define INCL_DOSPROCESS 22 22 #include <os2wrap.h> 23 #include <odinwrap.h> 23 24 #include <string.h> 24 25 #include <misc.h> … … 37 38 #define DBG_LOCALLOG DBG_oslibmsg 38 39 #include "dbglocal.h" 40 41 42 ODINDEBUGCHANNEL(USER32-OSLIBMSG) 39 43 40 44 … … 116 120 void WinToOS2MsgTranslate(MSG *winMsg, QMSG *os2Msg, BOOL isUnicode) 117 121 { 122 dprintf(("WinToOS2MsgTranslate not implemented")); 118 123 // memcpy(os2Msg, winMsg, sizeof(MSG)); 119 124 // os2Msg->hwnd = Win32ToOS2Handle(winMsg->hwnd); … … 201 206 //****************************************************************************** 202 207 //****************************************************************************** 203 BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,208 BOOL i_OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 204 209 BOOL isUnicode) 205 210 { … … 239 244 teb->o.odin.os2msg.msg = 0; 240 245 teb->o.odin.os2msg.hwnd = 0; 246 247 // @@@PH verify this 248 // if this is a keyup or keydown message, we've got to 249 // call the keyboard hook here 250 if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN) 251 { 252 ProcessKbdHook(pMsg, TRUE); 253 } 254 241 255 return (pMsg->message != WINWM_QUIT); 242 256 } … … 288 302 if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN) 289 303 { 290 // if(ProcessKbdHookLL(pMsg, TRUE))291 // goto continuegetmsg;292 293 // @@@PH294 304 // only supposed to be called upon WM_KEYDOWN 295 305 // and WM_KEYUP according to docs. … … 299 309 return rc; 300 310 } 311 BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 312 BOOL isUnicode) 313 { 314 dprintf(("OSLibWinGetMsg enter")); 315 BOOL fRes = i_OSLibWinGetMsg(pMsg, hwnd, uMsgFilterMin, uMsgFilterMax, isUnicode); 316 dprintf(("OSLibWinGetMsg leave")); 317 return fRes; 318 } 319 320 301 321 //****************************************************************************** 302 322 //PeekMessage retrieves only messages associated with the window identified by the … … 311 331 //TODO: Not working as specified right now! 312 332 //****************************************************************************** 313 BOOL OSLibWinPeekMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,333 BOOL i_OSLibWinPeekMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 314 334 DWORD fRemove, BOOL isUnicode) 315 335 { … … 350 370 } 351 371 memcpy(pMsg, &teb->o.odin.msgWCHAR, sizeof(MSG)); 372 373 // @@@PH verify this 374 // if this is a keyup or keydown message, we've got to 375 // call the keyboard hook here 376 if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN) 377 { 378 ProcessKbdHook(pMsg, fRemove); 379 } 352 380 return TRUE; 353 381 } … … 393 421 if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN) 394 422 { 395 // if(ProcessKbdHookLL(pMsg, fRemove))396 // goto continuepeekmsg;397 398 // @@@PH399 423 // only supposed to be called upon WM_KEYDOWN 400 424 // and WM_KEYUP according to docs. … … 405 429 return rc; 406 430 } 431 BOOL OSLibWinPeekMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, 432 BOOL fRemove, BOOL isUnicode) 433 { 434 dprintf(("OSLibWinPeekMsg enter")); 435 BOOL fRes = i_OSLibWinPeekMsg(pMsg, hwnd, uMsgFilterMin, uMsgFilterMax, fRemove, isUnicode); 436 dprintf(("OSLibWinPeekMsg leave")); 437 return fRes; 438 } 439 407 440 //****************************************************************************** 408 441 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.
