|
-
Dec 12th, 2001, 08:39 PM
#1
Thread Starter
Addicted Member
Why doesn't Show/Hide cursor not work?
Hi, I'm making a little game with DirectDraw and I use the: Public Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
then in the form load sub I type ShowCursor 0, and when I run my program the cursor is still there. WHy?? Help please!
Thanks.
-
Dec 12th, 2001, 09:08 PM
#2
Works just fine for me. Might want to change the ShowCursor 0 to ShowCursor False. Dunno if that will fix it..
Z.
-
Dec 12th, 2001, 09:41 PM
#3
Good Ol' Platypus
This is kind of strange, but...
This happened to me too when I had my Savage4 video card. When I got my GeForce2 it seemed to go away (I'm as confused about this as you guys are )
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Dec 13th, 2001, 03:30 AM
#4
Fanatic Member
Got some weird results with that too, although using DirectInput with almost-exclusive mouse access seemed to work (needed the mouse anyways )
And calling that function when Windows processes the WM_SETCURSOR worked too, but that would be a little bit tricky in VB
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Dec 13th, 2001, 07:42 AM
#5
Thread Starter
Addicted Member
Thanks for the responses!
About the video card, I already have a GeForce 2, so that is not the problem. Maybe there is a property setting on the Form somewhere that I have to set. I don't know.
Thanks anyways!
-
Dec 13th, 2001, 07:46 AM
#6
Fanatic Member
Maybe it's just one of those weird VB things. I wouldn't be surprised if it was VB who puts the cursor back
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Dec 13th, 2001, 08:04 AM
#7
Thread Starter
Addicted Member
HAHA, Just answered my own question.
In order for the cursor to go away you have to use "ShowCursor (0)" - notice the 0 in parantathese. And I also put that statement in the DX_Init sub, NOT in the Form Load.
Yeh, it must be one of those VB things
-
Dec 13th, 2001, 08:06 AM
#8
Fanatic Member
We're so helpful around here ;)
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
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
|