Ignore:
Timestamp:
Jan 3, 2000, 9:53:50 PM (26 years ago)
Author:
cbratschi
Message:

ported all USER32 bitmaps, several bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/oslibmsgtranslate.cpp

    r2292 r2309  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.3 2000-01-02 19:30:43 cbratschi Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.4 2000-01-03 20:53:49 cbratschi Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    139139      case WM_BUTTON3DBLCLK:
    140140        //WM_NC*BUTTON* is posted when the cursor is in a non-client area of the window
    141         if(win32wnd->lastHitTestVal != HTCLIENT_W) {
     141        if((win32wnd->lastHitTestVal != HTCLIENT_W) && (WinQueryCapture(HWND_DESKTOP) != win32wnd->getOS2WindowHandle())) {
    142142            winMsg->message = WINWM_NCLBUTTONDOWN + (os2Msg->msg - WM_BUTTON1DOWN);
    143143            winMsg->wParam  = win32wnd->lastHitTestVal;
     
    183183
    184184        //WM_NCMOUSEMOVE is posted when the cursor moves into a non-client area of the window
    185         if(win32wnd->lastHitTestVal != HTCLIENT_W)
     185        if((win32wnd->lastHitTestVal != HTCLIENT_W) && (WinQueryCapture(HWND_DESKTOP) != win32wnd->getOS2WindowHandle()))
    186186        {
    187187          setcursormsg   = WINWM_NCMOUSEMOVE;
     
    385385    case WM_BUTTON3DBLCLK:
    386386        //WM_NC*BUTTON* is posted when the cursor is in a non-client area of the window
    387         if(win32wnd->lastHitTestVal != HTCLIENT_W) {
     387        if((win32wnd->lastHitTestVal != HTCLIENT_W) && (WinQueryCapture(HWND_DESKTOP) != win32wnd->getOS2WindowHandle())) {
    388388            winMsg->message = WINWM_NCLBUTTONDOWN + (os2Msg->msg - WM_BUTTON1DOWN);
    389389            winMsg->wParam  = win32wnd->lastHitTestVal;
     
    429429
    430430        //WM_NCMOUSEMOVE is posted when the cursor moves into a non-client area of the window
    431         if(win32wnd->lastHitTestVal != HTCLIENT_W)
     431        if((win32wnd->lastHitTestVal != HTCLIENT_W) && (WinQueryCapture(HWND_DESKTOP) != win32wnd->getOS2WindowHandle()))
    432432        {
    433433          setcursormsg   = WINWM_NCMOUSEMOVE;
Note: See TracChangeset for help on using the changeset viewer.