ILMScrCapUserEventsCallback Interface

This is a user callback interface that should be implemented and registered using SetUserEventsCallbackObject method of the ILMScrCap interface.

Methods

HRESULT MouseEventsProc(long lMsg, long lXPos, long lYPos, long lWheelDelta, long pUserData)

Description

The filter will call this method every time a new mouse input event is posted.

Parameters

lMsg

Specifies the identifier of the mouse message. This parameter can be one of the following messages:

Value Meaning
USEREVENT_LBUTTONDOWN The left mouse button is pressed.
USEREVENT_LBUTTONUP The left mouse button is released.
USEREVENT_MOUSEMOVE The mouse moves.
USEREVENT_MOUSEWHEEL The mouse wheel is rotated.
USEREVENT_RBUTTONDOWN The right mouse button is pressed.
USEREVENT_RBUTTONUP The left mouse button is released.

lXPos

The X-coordinate of the mouse.

lYPos

The Y-coordinate of the mouse.

lWheelDelta

Wheel delta where a positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. One wheel click is defined as WHEEL_DELTA, which is 120. This is valid only when the message is WM_MOUSEWHEEL.

pUserData

Pointer to the user data.

HRESULT KeyboardEventsProc([in] long lMsg, [in] long lvKey, [in] VARIANT_BOOL bAltPressed, [in] long pUserData)

Description

The filter will call this method every time a new keyboard input event is posted.

Parameters

lMsg

Specifies the identifier of the keyboard message. This parameter can be one of the following messages:

Value Meaning
USEREVENT_KEYDOWN The nonsystem key is pressed.
USEREVENT_ KEYUP The nonsystem key is released.
USEREVENT_SYSKEYDOWN The system key is pressed.
USEREVENT_SYSKEYUP The system key is released.

lvKey

Specifies a virtual-key code.

bAltPressed

Indicates if the ALT key is pressed or not.

pUserData

Pointer to the user data.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.