Changeset 2948 for trunk/src


Ignore:
Timestamp:
Feb 29, 2000, 8:16:12 PM (25 years ago)
Author:
sandervl
Message:

kdb hook change

Location:
trunk/src/user32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/HOOK.CPP

    r2804 r2948  
    1 /* $Id: HOOK.CPP,v 1.11 2000-02-16 14:34:02 sandervl Exp $ */
     1/* $Id: HOOK.CPP,v 1.12 2000-02-29 19:16:11 sandervl Exp $ */
    22
    33/*
     
    697697}
    698698
     699
     700BOOL ProcessKbdHook(LPMSG msg, BOOL remove )
     701{
     702    return (HOOK_CallHooksA( WH_KEYBOARD, remove ? HC_ACTION : HC_NOREMOVE,
     703                             LOWORD (msg->wParam), msg->lParam )
     704                             ? TRUE : FALSE);
     705}
  • trunk/src/user32/oslibmsg.cpp

    r2804 r2948  
    1 /* $Id: oslibmsg.cpp,v 1.28 2000-02-16 14:34:26 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.29 2000-02-29 19:16:11 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    3232#include "pmwindow.h"
    3333#include "oslibwin.h"
     34#include <win\hook.h>
    3435
    3536#define DBG_LOCALLOG    DBG_oslibmsg
     
    248249  OS2ToWinMsgTranslate((PVOID)thdb, &os2msg, pMsg, isUnicode, MSG_REMOVE);
    249250  memcpy(MsgThreadPtr, &os2msg, sizeof(QMSG));
     251
     252  if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN)
     253  {
     254        if(ProcessKbdHook(pMsg, TRUE))
     255                goto continuegetmsg;
     256  }
    250257  return rc;
    251258}
     
    315322        memcpy(MsgThreadPtr, &os2msg, sizeof(QMSG));
    316323  }
     324
     325  if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN)
     326  {
     327        if(ProcessKbdHook(pMsg, fRemove))
     328                goto continuepeekmsg;
     329  }
     330
    317331  return rc;
    318332}
  • trunk/src/user32/win32wbase.cpp

    r2881 r2948  
    1 /* $Id: win32wbase.cpp,v 1.169 2000-02-24 19:19:08 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.170 2000-02-29 19:16:12 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    25692569{
    25702570 HWND hwndActive;
    2571  Win32BaseWindow  *win32wnd;
    2572  ULONG         magic;
    25732571
    25742572    dprintf(("SetActiveWindow %x", getWindowHandle()));
    2575     hwndActive = OSLibWinSetActiveWindow(OS2HwndFrame);
    2576     win32wnd = (Win32BaseWindow *)OSLibWinGetWindowULong(hwndActive, OFFSET_WIN32WNDPTR);
    2577     magic    = OSLibWinGetWindowULong(hwndActive, OFFSET_WIN32PM_MAGIC);
    2578     if(CheckMagicDword(magic) && win32wnd)
    2579     {
    2580         return win32wnd->getWindowHandle();
    2581     }
    2582     return windowDesktop->getWindowHandle(); //pretend the desktop was active
     2573    if(OSLibWinSetActiveWindow(OS2HwndFrame) == FALSE) {
     2574        dprintf(("OSLibWinSetActiveWindow %x returned FALSE!", OS2HwndFrame));
     2575    }
     2576    hwndActive = GetActiveWindow();
     2577    return (hwndActive) ? hwndActive : windowDesktop->getWindowHandle(); //pretend the desktop was active
    25832578}
    25842579//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.