Chinese Simplified (简体中文)

OnMouseMove Method of the IInputEvents Interface

This method is implemented on the client-side. It is called by ABBYY FineReader Engine when the mouse pointer is moved over Image Viewer, Zoom Viewer, Text Editor, Text Validator, or Document Viewer.

It delivers to the client information on the coordinates of the mouse pointer and modification keys have been used.

Syntax

C++

HRESULT OnMouseMove(
  int Flags,
  int X,
  int Y
);
    

C#

void OnMouseMove(
  int Flags,
  int X,
  int Y
);
    

Visual Basic .NET

Sub OnMouseMove( _
  Flags As Integer, _
  X As Integer, _
  Y As Integer _
)
    

Parameters

Flags
[in] Indicates whether various virtual keys are down. This parameter can be any combination of the following values:
  • MK_CONTROL (0x0008), if Ctrl key is down.
  • MK_LBUTTON (0x0001), if left mouse button is down.
  • MK_MBUTTON (0x0010), if middle mouse button is down.
  • MK_RBUTTON (0x0002), if right mouse button is down.
  • MK_SHIFT (0x0004), if Shift key is down.

The constants are defined in Winuser.h.

X
[in] Specifies the horizontal coordinate of the mouse pointer in screen coordinates.
Y
[in] Specifies the vertical coordinate of the mouse pointer in screen coordinates.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

Remarks

The client implementation of this method must assure that all exceptions thrown inside the method are caught and handled and no exceptions are propagated outside the method. Propagation of an exception outside the method may lead to unpredictable results (such as program termination).

See also

IInputEvents

17.09.2024 15:14:41

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.