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 :D
Printable View
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 :D
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
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.
If all else fails I think DirectInput treats movement of the mousewheel as movement in the Z-axis.