|
-
Sep 14th, 2000, 11:42 AM
#1
Thread Starter
Member
Hi,
Does anybody know a way to disable/enable the mouse and see if the mouse even exist in hardware profile?
Thanks
-
Sep 14th, 2000, 01:56 PM
#2
Fanatic Member
I think you could use this:
Code:
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Private Sub Form_Load()
ShowCursor 0 'Hide the cursor
'Wait 10 seconds
t = Timer
Do: DoEvents: Loop Until Timer > t + 10
ShowCursor 1 'Show the cursor
End Sub
But this only hides the pointer, it does not disable it.
I'll try to look at other possibilities.
-
Sep 15th, 2000, 08:14 AM
#3
transcendental analytic
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 15th, 2000, 01:29 PM
#4
Fanatic Member
Wright, Kedaman!
It was the ClipCursor thing.
-
Sep 18th, 2000, 11:03 PM
#5
Some APIs are not in Win2000, so you can set the cursor position into a form and add:
Code:
Private Sub Form_Mousemove()
'code for setting cursor position
End Sub
Strange how I could suggest AGAINST API. [!]
-
Sep 19th, 2000, 02:20 PM
#6
Fanatic Member
Consider that with your approach the mouse event still occurs. Clipcursor reduces the mouse area to a zero-sized rect, which really disables your mouse. So, I stay with Kedaman's approach...
-
Sep 19th, 2000, 05:46 PM
#7
OK, mc, I guess you're right. I really messed up that one, and I'm sorry.
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
|