|
-
Apr 25th, 2000, 08:43 PM
#1
Thread Starter
Member
Does anyone know why my VB6.0 doesn't recognize the mouse wheel? I can't get the screen to scroll by using the wheel!
Thanks
Dan McLeran
-
Apr 25th, 2000, 08:50 PM
#2
Mouse weel
I'm assuming you are using the scrool button on your mouse. As far as I know the scroll button is not designed to work in VB6. The scroll button was designed to work for the internet. So don't begoing to crazy becuase I never heard of anyone getting it to work.
Later
-
Apr 25th, 2000, 08:54 PM
#3
Frenzied Member
You have to subclass the window you want to scroll, windows sends messages to the window with the capture (the window the mouse is over) when the mousewheel is clicked or scrolled, I can't remember the constants or how the messages are formatted, the best way to find out is subclass the window so as to do nothing and just add
[code]
Debug.Print CStr(hWnd) & ", " & CStr(wMsg) & ", " & CStr(wParam) & ", " & CStr(lParam) & "."
and see what it does when you play with the mousewheel.
I'd Hope VB7 supports the mousewheel a bit better as well.
Hope this helps.
-
Apr 25th, 2000, 09:32 PM
#4
Frenzied Member
If all else fails I think DirectInput treats movement of the mousewheel as movement in the Z-axis.
Harry.
"From one thing, know ten thousand things."
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
|