Changeset 12750


Ignore:
Timestamp:
Dec 20, 1999, 8:56:35 PM (25 years ago)
Author:
cbratschi
Message:

Fixed Coordinate conversion in WM_HITTEST (don't use handles as a coordinates)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/src/user32/pmwindow.cpp

    r12724 r12750  
    1 /* $Id: pmwindow.cpp,v 1.66 1999-12-19 17:46:25 cbratschi Exp $ */
     1/* $Id: pmwindow.cpp,v 1.67 1999-12-20 19:56:35 cbratschi Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    883883
    884884    case WM_HITTEST:
    885     // Only send this message if the window is enabled
    886         if (WinIsWindowEnabled(hwnd))
    887         {
    888             if(win32wnd->MsgHitTest((*(POINTS *)&mp1).x, MapOS2ToWin32Y(OSLIB_HWND_DESKTOP, hwnd, (*(POINTS *)&mp1).y))) {
    889                     goto RunDefWndProc;
    890             }
    891         }
    892         else    goto RunDefWndProc;
    893         break;
     885      // Only send this message if the window is enabled
     886      if (WinIsWindowEnabled(hwnd))
     887      {
     888        OSLIBPOINT pt;
     889        dprintf(("USER32: WM_HITTEST (%d,%d)",(*(POINTS *)&mp1).x,(*(POINTS *)&mp1).y));
     890        pt.x = (*(POINTS *)&mp1).x;
     891        pt.y = (*(POINTS *)&mp1).y;
     892        MapOS2ToWin32Point( OSLIB_HWND_DESKTOP, hwnd, &pt);
     893        if(win32wnd->MsgHitTest(pt.x, pt.y))
     894        {
     895          goto RunDefWndProc;
     896        }
     897      } else goto RunDefWndProc;
     898      break;
    894899
    895900    case WM_CONTEXTMENU:
Note: See TracChangeset for help on using the changeset viewer.