Hiya,
Not that i know of.. but u could simulate this in 2 steps couldn't u???....
#1 MouseDown... set some flag...
#2 MouseUp... reset the flag...
so as long as the flag is set... the button is held down....
cheers
gaurav
Printable View
Hiya,
Not that i know of.. but u could simulate this in 2 steps couldn't u???....
#1 MouseDown... set some flag...
#2 MouseUp... reset the flag...
so as long as the flag is set... the button is held down....
cheers
gaurav
I don't think there is another way. Let's just say...VB needs API to live :).
Unfortunatley it's a fairly Complecated Situation So I Can't use the Flag Option, Just To Clarify Matthew I know there's no Way in VB, The GetCursorPos API Won't work Either, I'm Looking For An API That Can, I just uses GetCursorPos as it is a Similar API to Get the Mouse Posiion, I need one Like It to Get the Button States, Or any Way at all.
Sorry mate,
The situation seems to be that u want an event that tells u when Nothings happening!!! kinda tough huh!! :) so tell me again y can't u use the flags option???
there's always a way...
cheers
Gaurav
I don't know if this helps but take a look at
http://www.vbaccelerator.com/codelib/hook/vbalhook.htm
I used their example recently , modified it a little to determine when my form is moved in order to move another form simultaneously.
I Don't think a Hook would Be too much use, you Say you used one for Simultanious form moving, Would Subclassing Not be better for that, just moving the other window on the WindowPosChanged Message.
But thanks anyway.