Ignore:
Timestamp:
Apr 15, 2000, 5:11:14 PM (25 years ago)
Author:
sandervl
Message:

EnableWindow fixes & don't send mouse messages to disabled windows

File:
1 edited

Legend:

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

    r3366 r3388  
    1 /* $Id: pmframe.cpp,v 1.50 2000-04-10 19:43:15 sandervl Exp $ */
     1/* $Id: pmframe.cpp,v 1.51 2000-04-15 15:11:13 sandervl Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    168168    case WM_HITTEST:
    169169    {
    170         if (win32wnd->IsWindowCreated())
     170        if(win32wnd->getWindowHandle() != pWinMsg->hwnd) {
     171                win32wnd = Win32BaseWindow::GetWindowFromHandle(pWinMsg->hwnd);
     172        }
     173        if(win32wnd && win32wnd->IsWindowCreated())
    171174        {
    172175          MRESULT rc;
     
    189192    case WM_BUTTON3DBLCLK:
    190193    {
    191         if (win32wnd->IsWindowCreated())
     194        if(win32wnd->getWindowHandle() != pWinMsg->hwnd) {
     195                win32wnd = Win32BaseWindow::GetWindowFromHandle(pWinMsg->hwnd);
     196        }
     197        if(win32wnd && win32wnd->IsWindowCreated())
    192198        {
    193199          win32wnd->MsgButton(pWinMsg);
     
    211217    case WM_MOUSEMOVE:
    212218    {
    213         //OS/2 Window coordinates -> Win32 Window coordinates
    214         if (win32wnd->IsWindowCreated())
    215           win32wnd->MsgMouseMove(pWinMsg);
     219        if(win32wnd->getWindowHandle() != pWinMsg->hwnd) {
     220                win32wnd = Win32BaseWindow::GetWindowFromHandle(pWinMsg->hwnd);
     221        }
     222        if(win32wnd && win32wnd->IsWindowCreated())
     223                win32wnd->MsgMouseMove(pWinMsg);
    216224        RestoreOS2TIB();
    217225        return (MRESULT)TRUE;
Note: See TracChangeset for help on using the changeset viewer.