Поделиться через


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 
);

Параметры

  • 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.

Заметки

The default implementation calls COleControl::FireClick.

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

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::DoClick

COleControl::FireClick