Thread View: comp.windows.ms.programmer
2 messages
2 total messages
Started by Hugh Molotsi
Wed, 31 Oct 1990 23:41
Hooking onto the mouse
Author: Hugh Molotsi
Date: Wed, 31 Oct 1990 23:41
Date: Wed, 31 Oct 1990 23:41
9 lines
710 bytes
710 bytes
Hi Windows hackers, Does anybody know how to hook onto the Window's mouse driver so that an application can keep track of mouse messages in the background? This can be done for the keyboard using SetWindowsHook() and the WH_KEYBOARD hook (a la Petzold). HNM: "I've fallen and I can't get up!"
Re: Hooking onto the mouse
Author: David D'SOUZA
Date: Sat, 03 Nov 1990 20:44
Date: Sat, 03 Nov 1990 20:44
21 lines
1221 bytes
1221 bytes
Good question... So, why doesn't Windows have a WH_MOUSE hook? Anyway, you have to use a WH_GETMESSAGE hook since all mouse messages are picked up by apps at GetMessage time (and then dispatched to the specific window procedure.) The problem here is that you do take a bit of a performance hit since another function call needs to occur everytime an app does a getmessage. --Dave In article <13430001@hpspcoi.HP.COM> hmolotsi@hpspcoi.HP.COM (Hugh Molotsi) writes: >Hi Windows hackers, > > Does anybody know how to hook onto the Window's mouse driver so >that an application can keep track of mouse messages in the background? >This can be done for the keyboard using SetWindowsHook() and the WH_KEYBOARD >hook (a la Petzold). > > >HNM: "I've fallen and I can't get up!"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads