COleControl::OnClick

Called by the framework when a mouse button has been clicked or the DoClick stock method has been invoked.

virtual void OnClick(
   USHORT iButton 
);

Parameters

  • iButton
    Index of a mouse button. Can have one of the following values:

    • LEFT_BUTTON   The left mouse button was clicked.

    • MIDDLE_BUTTON   The middle mouse button was clicked.

    • RIGHT_BUTTON   The right mouse button was clicked.

Remarks

The default implementation calls COleControl::FireClick.

Override this member function to modify or extend the default handling.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::DoClick

COleControl::FireClick

Other Resources

COleControl Members