Ignore:
Timestamp:
Aug 29, 1999, 10:05:08 PM (26 years ago)
Author:
sandervl
Message:

Mouse message handling changes

File:
1 edited

Legend:

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

    r729 r740  
    1 /* $Id: pmwindow.cpp,v 1.24 1999-08-28 19:32:46 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.25 1999-08-29 20:05:07 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    434434    case WM_MOUSEMOVE:
    435435    {
     436        //Only send this message when the mouse isn't captured
     437        if(WinQueryCapture(HWND_DESKTOP) != NULLHANDLE) {
     438                goto RunDefWndProc;
     439        }
    436440        ULONG keystate = 0;
    437441        if(WinGetKeyState(HWND_DESKTOP, VK_BUTTON1))
     
    589593
    590594    case WM_HITTEST:
    591         if(win32wnd->MsgHitTest((*(POINTS *)&mp1).x, MapOS2ToWin32Y(OSLIB_HWND_DESKTOP, hwnd, (*(POINTS *)&mp1).y))) {
    592                 goto RunDefWndProc;
    593         }
     595        // Only send this message if the window is enabled
     596        if (WinIsWindowEnabled(hwnd))
     597        {
     598                if(win32wnd->MsgHitTest((*(POINTS *)&mp1).x, MapOS2ToWin32Y(OSLIB_HWND_DESKTOP, hwnd, (*(POINTS *)&mp1).y))) {
     599                        goto RunDefWndProc;
     600                }
     601        }
     602        else    goto RunDefWndProc;
    594603        break;
    595604
Note: See TracChangeset for help on using the changeset viewer.