MouseWheel in VB6.0

D619d95cddb1edb227f51ef539d15cdc
0
Nautilus 103 Jan 26, 2005 at 13:07

How to track MouseWheel movements in Visual Basic 6.0?
VB cares about standard mouse buttons but provides no mean to react to MouseWhel movements :blink:

Do I have to use the Win32 API (if so, how?) or is there a built-in method in VB?
Please give detailed help, as I have limited VB knowledge :blush:

Thanks in advance.

4 Replies

Please log in or register to post a reply.

D619d95cddb1edb227f51ef539d15cdc
0
Nautilus 103 Jan 27, 2005 at 19:31

21 views, 0 replies?
How can it be nobody knows enough on VB to help me? :)
Never mind, problem is solved.

Thanks anyway.
Regards.

065f0635a4c94d685583c20132a4559d
0
Ed_Mack 101 Jan 27, 2005 at 20:34

Sorry, unfortunately not many VB programmers are residents here.

Fdbdc4176840d77fe6a8deca457595ab
0
dk 158 Jan 27, 2005 at 23:02
D619d95cddb1edb227f51ef539d15cdc
0
Nautilus 103 Jan 28, 2005 at 21:49

@Ed Mack

Sorry, unfortunately not many VB programmers are residents here. [snapback]15468[/snapback]

I understand, don’t worry. VB is really limited… I too prefer C/C++.

Problem was, my Boss wanted a utility to show certain data using a 3D graphic.
Not too complicated.
But he wanted me to use VB (ouch), and also asked for a zoom-Like feature bound to the mousewheel :dry: (gosh! why ME?)

I just couldn’t tell him using VB for the task was insane :blush:
Especially since he like it so much (Boss, grow up: VB is a toy…)

So, shortly after posting here, I found a VB6.0 crash course and learned how to call Win32API.

The rest was piece of cake:
1) subclass form’s window procedure
2) intercept WM_MOUSEWHEEL messages (which VB seem to purposedly ignore… why I wonder!?).

Best regards,
Ciao :)