- Timestamp:
- Feb 29, 2000, 8:16:12 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/HOOK.CPP
r2804 r2948 1 /* $Id: HOOK.CPP,v 1.1 1 2000-02-16 14:34:02sandervl Exp $ */1 /* $Id: HOOK.CPP,v 1.12 2000-02-29 19:16:11 sandervl Exp $ */ 2 2 3 3 /* … … 697 697 } 698 698 699 700 BOOL 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.2 8 2000-02-16 14:34:26sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.29 2000-02-29 19:16:11 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 32 32 #include "pmwindow.h" 33 33 #include "oslibwin.h" 34 #include <win\hook.h> 34 35 35 36 #define DBG_LOCALLOG DBG_oslibmsg … … 248 249 OS2ToWinMsgTranslate((PVOID)thdb, &os2msg, pMsg, isUnicode, MSG_REMOVE); 249 250 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 } 250 257 return rc; 251 258 } … … 315 322 memcpy(MsgThreadPtr, &os2msg, sizeof(QMSG)); 316 323 } 324 325 if(pMsg->message <= WINWM_KEYLAST && pMsg->message >= WINWM_KEYDOWN) 326 { 327 if(ProcessKbdHook(pMsg, fRemove)) 328 goto continuepeekmsg; 329 } 330 317 331 return rc; 318 332 } -
trunk/src/user32/win32wbase.cpp
r2881 r2948 1 /* $Id: win32wbase.cpp,v 1.1 69 2000-02-24 19:19:08sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.170 2000-02-29 19:16:12 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2569 2569 { 2570 2570 HWND hwndActive; 2571 Win32BaseWindow *win32wnd;2572 ULONG magic;2573 2571 2574 2572 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 2583 2578 } 2584 2579 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.