nautilus at January 26th, 2005 08:07 — #1
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
Thanks in advance.
nautilus at January 27th, 2005 14:31 — #2
21 views, 0 replies?
How can it be nobody knows enough on VB to help me? Never mind, problem is solved.
ed_mack at January 27th, 2005 15:34 — #3
Sorry, unfortunately not many VB programmers are residents here.
dk2 at January 27th, 2005 18:02 — #4
nautilus at January 28th, 2005 16:49 — #5
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 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!?).