Ignore:
Timestamp:
Oct 26, 2001, 11:10:57 AM (24 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibmsg.cpp

    r7205 r7211  
    1 /* $Id: oslibmsg.cpp,v 1.46 2001-10-25 15:35:53 phaller Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.47 2001-10-26 09:10:12 phaller Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    2121#define  INCL_DOSPROCESS
    2222#include <os2wrap.h>
     23#include <odinwrap.h>
    2324#include <string.h>
    2425#include <misc.h>
     
    3738#define DBG_LOCALLOG    DBG_oslibmsg
    3839#include "dbglocal.h"
     40
     41
     42ODINDEBUGCHANNEL(USER32-OSLIBMSG)
    3943
    4044
     
    116120void WinToOS2MsgTranslate(MSG *winMsg, QMSG *os2Msg, BOOL isUnicode)
    117121{
     122  dprintf(("WinToOS2MsgTranslate not implemented"));
    118123//  memcpy(os2Msg, winMsg, sizeof(MSG));
    119124//  os2Msg->hwnd = Win32ToOS2Handle(winMsg->hwnd);
     
    201206//******************************************************************************
    202207//******************************************************************************
    203 BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
     208BOOL i_OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
    204209                    BOOL isUnicode)
    205210{
     
    239244        teb->o.odin.os2msg.msg  = 0;
    240245        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   
    241255        return (pMsg->message != WINWM_QUIT);
    242256  }
     
    288302  if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN)
    289303  {
    290 //    if(ProcessKbdHookLL(pMsg, TRUE))
    291 //      goto continuegetmsg;
    292    
    293     // @@@PH
    294304    // only supposed to be called upon WM_KEYDOWN
    295305    // and WM_KEYUP according to docs.
     
    299309  return rc;
    300310}
     311BOOL 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
    301321//******************************************************************************
    302322//PeekMessage retrieves only messages associated with the window identified by the
     
    311331//TODO: Not working as specified right now!
    312332//******************************************************************************
    313 BOOL OSLibWinPeekMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
     333BOOL i_OSLibWinPeekMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
    314334                     DWORD fRemove, BOOL isUnicode)
    315335{
     
    350370        }
    351371        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        }
    352380        return TRUE;
    353381  }
     
    393421  if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN)
    394422  {
    395 //    if(ProcessKbdHookLL(pMsg, fRemove))
    396 //      goto continuepeekmsg;
    397 
    398     // @@@PH
    399423    // only supposed to be called upon WM_KEYDOWN
    400424    // and WM_KEYUP according to docs.
     
    405429  return rc;
    406430}
     431BOOL 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
    407440//******************************************************************************
    408441//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.