Ignore:
Timestamp:
Mar 10, 2004, 10:21:09 AM (21 years ago)
Author:
sandervl
Message:

Added support for WH_MOUSE hook

File:
1 edited

Legend:

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

    r10451 r10501  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.119 2004-02-11 15:38:11 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.120 2004-03-10 09:21:09 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    482482        {
    483483            MSLLHOOKSTRUCT hook;
     484            MOUSEHOOKSTRUCT mousehk;
    484485            ULONG          msg;
    485486
     
    501502            }
    502503
     504            // First the low-level mouse hook
    503505            hook.pt.x        = os2Msg->ptl.x & 0xFFFF;
    504506            hook.pt.y        = mapScreenY(os2Msg->ptl.y);
     
    509511
    510512            if(HOOK_CallHooksW( WH_MOUSE_LL, HC_ACTION, msg, (LPARAM)&hook)) {
     513                goto dummymessage; //hook swallowed message
     514            }
     515
     516            // Now inform the WH_MOUSE hook
     517            mousehk.pt           = hook.pt;
     518            mousehk.hwnd         = winMsg->hwnd;
     519            mousehk.wHitTestCode = win32wnd->getLastHitTestVal();
     520            mousehk.dwExtraInfo  = 0;
     521
     522            if(HOOK_CallHooksW( WH_MOUSE_W, HC_ACTION, msg, (LPARAM)&mousehk)) {
    511523                goto dummymessage; //hook swallowed message
    512524            }
Note: See TracChangeset for help on using the changeset viewer.