Compartir a través de


MouseWheel Event

MouseWheel Event

Occurs when the mouse wheel moves while the InkPicture control has focus.

Declaration

[C++]

void MouseWheel(
    [in] InkMouseButton Button,
    [in] InkShiftKeyModifierFlags Shift,
    [in] long Delta,
    [in] long x,
    [in] long y,
    [in, out] VARIANT_BOOL* Cancel
);

Parameters

Button

[in] The button that was pressed.

Shift

[in] The state of the SHIFT key.

Delta

[in] The distance that the mouse wheel turned.

x

[in] The x-coordinate, in pixels, of the IInkCursor object.

y

[in] The y-coordinate, in pixels, of the IInkCursor object.

Cancel

[in, out] A Boolean value that indicates whether to cancel this event for the parent control.

Value Description
TRUE The MouseWheel event is cancelled for the parent control.
FALSE The MouseWheel event continues for the parent control.

Remarks

Note: The parameters x and y are in pixels, and not the HIMETRIC units that are associated with the ink space coordinate system. This is because this event replaces the related mouse event of an application that is not pen-aware, and that type of application refers only to pixels.

This event method is defined in the _IInkPictureEvents interface. The _IInkPictureEvents interface implements the IDispatch Leave Site interface with an identifier of DISPID_IPEMouseWheel.

Applies To