|
-
May 30th, 2000, 02:42 AM
#1
Thread Starter
Guru
I am using the WH_JOURNALRECORD hook to check whether a mouse event (a message between WM_MOUSEFIRST and WM_MOUSELAST) occured anywhere on the screen. The problem is, if the cursor changes its icon for any reason, a WM_MOUSEMOVE message is sent to the window at the cursor position.
I have no problem with the other messages.
I need to check for mouse moves and avoid curosr changes. Because of reasons I don't want to get into, I can't use GetCursorPos and check if the cursor changed position.
Got any ideas?
-
May 30th, 2000, 08:55 PM
#2
I'm guessing the reason you are using WH_JOURNALRECORD is to make a keystroke recorder, since that is its most common use. I won't help you there, but as far as checking for events between the two meggages how about just running the message through a case statement, and ignore the WM_MOUSEMOVE message.
-
May 30th, 2000, 09:05 PM
#3
Thread Starter
Guru
I do need it.
I am using the WH_JOURNALRECORD hook to check whether a mouse event (a message between WM_MOUSEFIRST and WM_MOUSELAST) occured anywhere on the screen.
I must process all messages within that range. WM_MOUSEMOVE is the first message there. I need to not process it if its source is a mouse cursor change.
Well... How?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|