COleControl::FireMouseDown

void FireMouseDown( short nButton, short nShiftState, OLE_XPOS_PIXELS x, OLE_YPOS_PIXEL y );

Parameters

nButton

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

nShiftState

Contains a combination of the following flags:

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.

Remarks

Called by the framework when a mouse button is pressed over an active custom control. If this event is defined as a custom event, you determine when the event is fired.

For automatic firing of a MouseDown event to occur, the control’s Event map must have a stock MouseDown event defined.

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::FireMouseUp, COleControl::FireMouseMove, COleControl::FireClick