Copyright © 1998-2015 MultiMedia Soft

MouseMove event

Previous pageReturn to chapter overviewNext page

Remarks

Occurs when the user moves the mouse over the button.

 

Syntax

Visual Basic

BtnEnh1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)

 

Visual C++

void MouseMove (short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);

 

Parameter

Description

 

 

Button

The numeric value of the mouse button pressed. It can contain one of the following values:

LEFT_BUTTON The left mouse button was pressed down.

MIDDLE_BUTTON The middle mouse button was pressed down.

RIGHT_BUTTON The right mouse button was pressed down.

Shift

Contains a combination of the following flags:

SHIFT_MASK The SHIFT key was pressed during the action.

CTRL_MASK The CTRL key was pressed during the action.

ALT_MASK The ALT key was pressed during the action.

x

The x-coordinate of the cursor when a mouse button was pressed down. The coordinate is relative to the upper-left corner of the control window.

y

The y-coordinate of the cursor when a mouse button was pressed down. The coordinate is relative to the upper-left corner of the control window.