Ignore:
Timestamp:
Dec 24, 1999, 7:42:46 PM (26 years ago)
Author:
sandervl
Message:

Message handling rewrite

File:
1 edited

Legend:

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

    r2084 r2200  
    1 /* $Id: windowmsg.cpp,v 1.10 1999-12-16 00:11:49 sandervl Exp $ */
     1/* $Id: windowmsg.cpp,v 1.11 1999-12-24 18:39:13 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    2121#include <win.h>
    2222#include <heapstring.h>
     23#include <handlemanager.h>
    2324#include "oslibwin.h"
    2425#include "oslibmsg.h"
     
    4546//******************************************************************************
    4647//******************************************************************************
    47 BOOL WIN32API TranslateMessage( const MSG * arg1)
    48 {
    49 //    return O32_TranslateMessage(arg1);
    50    return TRUE;
     48BOOL WIN32API TranslateMessage( const MSG * msg)
     49{
     50   return OSLibWinTranslateMessage((MSG *)msg);
    5151}
    5252//******************************************************************************
     
    7070
    7171    fFoundMsg = OSLibWinPeekMsg(msg, 0, uMsgFilterMin, uMsgFilterMax,
    72                                 (fuRemoveMsg & PM_REMOVE) ? 1 : 0, FALSE);
     72                                fuRemoveMsg, FALSE);
    7373    if(fFoundMsg) {
    74         if (msg->message == WM_QUIT && (fuRemoveMsg & (PM_REMOVE))) {
     74        if (msg->message == WM_QUIT && (fuRemoveMsg & PM_REMOVE)) {
    7575            //TODO: Post WM_QUERYENDSESSION message when WM_QUIT received and system is shutting down
    7676        }
     
    991991{
    992992 DWORD queueStatus;
    993 
    994   dprintf(("USER32:GetInputState()"));
     993 BOOL  rc;
     994
    995995  queueStatus = OSLibWinQueryQueueStatus();
    996996
    997   return (queueStatus & (QS_KEY | QS_MOUSEBUTTON)) ? TRUE : FALSE;
     997  rc = (queueStatus & (QS_KEY | QS_MOUSEBUTTON)) ? TRUE : FALSE;
     998  dprintf(("USER32:GetInputState() returned %d", rc));
     999  return rc;
    9981000}
    9991001//******************************************************************************
     
    10321034        return WAIT_TIMEOUT;
    10331035  }
    1034   return O32_MsgWaitForMultipleObjects(nCount,pHandles,fWaitAll,dwMilliseconds,dwWakeMask);
    1035 }
     1036  //SvL: Call handlemanager function as we need to translate handles
     1037  return HMMsgWaitForMultipleObjects(nCount,pHandles,fWaitAll,dwMilliseconds,dwWakeMask);
     1038}
Note: See TracChangeset for help on using the changeset viewer.