Share via


COleControl::FireMouseUp

Called by the framework when a mouse button is released over an active custom control.

void FireMouseUp( 
   short nButton, 
   short nShiftState, 
   OLE_XPOS_PIXELS x, 
   OLE_YPOS_PIXELS y  
);

Parameters

  • nButton
    The numeric value of the mouse button released. It can have one of the following values:

    • LEFT_BUTTON   The left mouse button was released.

    • MIDDLE_BUTTON   The middle mouse button was released.

    • RIGHT_BUTTON   The right mouse button was released.

  • nShiftState
    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 released. The coordinate is relative to the upper-left corner of the control window.

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

Remarks

If this event is defined as a custom event, you determine when the event is fired.

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

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::FireMouseDown

COleControl::FireClick

COleControl::FireDblClick