api and mousestate

Windows specific forum
BabyBacon
New User
New User
Posts: 8
Joined: Wed Feb 01, 2006 11:47 pm
Location: Sweden

api and mousestate

Post by BabyBacon »

Hello people!

Cant find how to receive the mousestate with api, I want to know when a singel-click, double-click etc accours. this must be possbile, right?

And now when I allready got you reading this thread can I ask an other thing too :D
How can I receive the mousestate ( like a click etc) but not pass it throu to the operating system, (this may not be possible), so I only get the click but nothing happens to the active window.

btw I know that it is possible if you got a window, but I wont, it dont even have a window, just want to get it and nothing else to happen. Maybe this can be made with keyboard too?

Happy RabbitDay!
Crapholio is coming to town!
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

If you do a mouseaction on a parentwindow or a childwindow which haves a #CS_DBLCLKS style, your callback will retrieve following messages:

#WM_CAPTURECHANGED
#WM_LBUTTONDBLCLK
#WM_LBUTTONDOWN
#WM_LBUTTONUP
#WM_MBUTTONDBLCLK
#WM_MBUTTONDOWN
#WM_MBUTTONUP
#WM_MOUSEACTIVATE
#WM_MOUSEMOVE
#WM_MOUSEWHEEL
#WM_NCHITTEST
#WM_NCLBUTTONDBLCLK
#WM_NCLBUTTONDOWN
#WM_NCLBUTTONUP
#WM_NCMBUTTONDBLCLK
#WM_NCMBUTTONDOWN
#WM_NCMBUTTONUP
#WM_NCMOUSEMOVE
#WM_NCRBUTTONDBLCLK
#WM_NCRBUTTONDOWN
#WM_NCRBUTTONUP
#WM_RBUTTONDBLCLK
#WM_RBUTTONDOWN
#WM_RBUTTONUP
Post Reply