Parameters
Name | Explanation |
---|---|
Shift | This parameter retrieves (in hexadecimal notation)
the other types of buttons that are pressed at the time this event
is generated.
0x0001: Left mouse button 0x0002: Right mouse button 0x0004:Shift key 0x0008:Ctrl key 0x0010: Middle mouse button If multiple buttons are pressed, the above values are combined in a bitwise OR operation. * The above hexadecimal notation is for VC++ For Visual Basic, please change the above 0x to &H |
Direction | Direction of the scroll. (0: disables scroll, 1: vertical, 2: horizontal) |
It is also possible to use the following constants in Visual Basic (ikDisable = 0, ikVertical = 1, ikHorizontal = 2)
Explanation
The MouseWheelDownImage event is generated when the mouse wheel is rolled up. Any code written in this event will execute whenever the mouse wheel is rolled up. Furthermore, by using the Shift parameter, you can determine whether another mouse button was pressed at the same time the mouse wheel was rolled up. In this way, you can write different code that executes if the left mouse button is pressed while the mouse wheel is rolled up or if the right mouse button is pressed while the mouse is rolled up, etc.
Note: The Direction parameter returns the value set in the MouseWheel property.