Ignore:
Timestamp:
Apr 27, 2001, 7:36:39 PM (24 years ago)
Author:
sandervl
Message:

mouse message translation + dc reset after resize fixes

File:
1 edited

Legend:

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

    r5137 r5606  
    1 /* $Id: oslibmsg.cpp,v 1.36 2001-02-15 00:33:01 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.37 2001-04-27 17:36:37 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    6767   WM_HITTEST,       WINWM_NCHITTEST,
    6868
     69   //todo: not always right if mouse msg turns out to be for the client window
     70   WM_MOUSEMOVE,     WINWM_NCMOUSEMOVE,
     71   WM_BUTTON1DOWN,   WINWM_NCLBUTTONDOWN,
     72   WM_BUTTON1UP,     WINWM_NCLBUTTONUP,
     73   WM_BUTTON1DBLCLK, WINWM_NCLBUTTONDBLCLK,
     74   WM_BUTTON2DOWN,   WINWM_NCRBUTTONDOWN,
     75   WM_BUTTON2UP,     WINWM_NCRBUTTONUP,
     76   WM_BUTTON2DBLCLK, WINWM_NCRBUTTONDBLCLK,
     77   WM_BUTTON3DOWN,   WINWM_NCMBUTTONDOWN,
     78   WM_BUTTON3UP,     WINWM_NCMBUTTONUP,
     79   WM_BUTTON3DBLCLK, WINWM_NCMBUTTONDBLCLK,
     80
    6981   //TODO: Needs better translation!
    7082   WM_CHAR,          WINWM_KEYDOWN,
     
    8294
    8395   //
     96   //todo: not always right if mouse msg turns out to be for the nonclient window
    8497   WM_MOUSEMOVE,     WINWM_MOUSEMOVE,
    8598   WM_BUTTON1DOWN,   WINWM_LBUTTONDOWN,
     
    341354  }
    342355
    343   OS2ToWinMsgTranslate((PVOID)teb, &os2msg, pMsg, isUnicode, (fRemove & PM_REMOVE_W) ? MSG_REMOVE : MSG_NOREMOVE);
     356  if(OS2ToWinMsgTranslate((PVOID)teb, &os2msg, pMsg, isUnicode, (fRemove & PM_REMOVE_W) ? MSG_REMOVE : MSG_NOREMOVE) == FALSE)
     357  {
     358     //unused PM message; dispatch immediately and grab next one
     359     dprintf2(("OSLibWinPeekMsg: Untranslated message; dispatched immediately"));
     360     rc = WinPeekMsg(teb->o.odin.hab, &os2msg, hwndOS2, TranslateWinMsg(uMsgFilterMin, TRUE),
     361                     TranslateWinMsg(uMsgFilterMax, FALSE), PM_REMOVE);
     362     WinDispatchMsg(teb->o.odin.hab, &os2msg);
     363     return OSLibWinPeekMsg(pMsg, hwnd, uMsgFilterMin, uMsgFilterMax,
     364                            fRemove, isUnicode);
     365  }
    344366  //TODO: This is not safe! There's no guarantee this message will be dispatched and it might overwrite a previous message
    345367  if(fRemove & PM_REMOVE_W) {
Note: See TracChangeset for help on using the changeset viewer.