PDA

View Full Version : MouseWheel in VB6.0


Nautilus
01-26-2005, 06:07 AM
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.

Nautilus
01-27-2005, 12:31 PM
21 views, 0 replies?
How can it be nobody knows enough on VB to help me? :)
Never mind, problem is solved.

Thanks anyway.
Regards.

Ed Mack
01-27-2005, 01:34 PM
Sorry, unfortunately not many VB programmers are residents here.

Dia Kharrat
01-27-2005, 04:02 PM
This might help you:

http://www.andreavb.com/tip060008.html

Nautilus
01-28-2005, 02:49 PM
Sorry, unfortunately not many VB programmers are residents here.
15468

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 :)