about mouse

Started by
3 comments, last by Evil Steve 19 years, 1 month ago
Hello all, I get into trouble in geting the message WM_MOUSEMOVE in other window. The message WM_MOUSEMOVE is usually posted to the window which the mouse in. Now, I have a program with a window and I can't do anything to it. I want to get its WM_MOUSEMOVE message to use in other program. Give me a hand, please. Thank you.
Advertisement
by the way, I'm using c++.
Can anyone give me a help? Thank you.
How about using mouse hook or perhaps by capturing it?
Yup doynax is right, you want to use SetCapture() and ReleaseCapture() so you get the mouse imput even when the mouse is not over your window. I think a mouse hook might be a bit overkill for this [smile]

This topic is closed to new replies.

Advertisement