Ignore:
Timestamp:
Oct 28, 1999, 8:22:31 PM (26 years ago)
Author:
sandervl
Message:

message fixes

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:14 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.5 1999-10-28 18:22:26 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    3737} MSGTRANSTAB, *PMSGTRANSTAB;
    3838
    39 #define MAX_MSGTRANSTAB 12
     39#define MAX_MSGTRANSTAB 15
    4040MSGTRANSTAB MsgTransTab[MAX_MSGTRANSTAB] = {
    4141   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
    4245   0x0070, 0x0200,  // WM_MOUSEMOVE,       WM_MOUSEMOVE
    4346   0x0071, 0x0201,  // WM_BUTTON1DOWN,     WM_LBUTTONDOWN
     
    131134void OSLibWinPostQuitMessage(ULONG nExitCode)
    132135{
    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));
    134140}
    135141//******************************************************************************
     
    137143LONG OSLibWinDispatchMsg(MSG *msg, BOOL isUnicode)
    138144{
     145 BOOL eaten = 0;
     146
    139147//TODO: What to do if app changed msg? (translate)
    140148//  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;
    141156
    142157  return (LONG)WinDispatchMsg(GetThreadHAB(), MsgThreadPtr);
Note: See TracChangeset for help on using the changeset viewer.