Results 1 to 4 of 4

Thread: Mouse Wheel

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 1999
    Location
    Longmont,CO
    Posts
    53

    Thumbs down

    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

  2. #2
    Guest

    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

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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.

  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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
  •  



Click Here to Expand Forum to Full Width