|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Check if cursor is on the command or notIs there a way to check if the cursor is on the command button or not? I
know how to check if it's on by using MouseMove method but don't know how to check if it's off the buton. Thanks. On Tue, 10 May 2005 20:43:44 -0700, "PJ" <P*@hotmail.com> wrote: There are lots of different methods that could be used but which one>Is there a way to check if the cursor is on the command button or not? I >know how to check if it's on by using MouseMove method but don't know how to >check if it's off the buton. Thanks. you use depends on what you are attempting to accomplish. So, if you were to explain exactly what it is that you are trying to accomplish, I'm sure someone will be able to point you in the right direction. HTH, Bryan ____________________________________________________________ New Vision Software "When the going gets weird," Bryan Stafford "the weird turn pro." alpine_don'tsendspam@mvps.org Hunter S. Thompson - Microsoft MVP-Visual Basic Fear and Loathing in LasVegas On Tue, 10 May 2005 20:43:44 -0700, "PJ" <P*@hotmail.com> wrote: GetCursorPos API>Is there a way to check if the cursor is on the command button or not? I >know how to check if it's on by using MouseMove method but don't know how to >check if it's off the buton. Thanks. A cheap trick would be to use WindowFromPoint and compare the hWnds |
|||||||||||||||||||||||