다음을 통해 공유


CMFCToolBarButton::OnClick

Called by the framework when the user clicks the mouse button.

virtual BOOL OnClick(
   CWnd* pWnd,
   BOOL bDelay=TRUE 
);

Parameters

  • [in] pWnd
    The parent window of the toolbar button.

  • [in] bDelay
    TRUE if the message should be handled with a delay.

Return Value

This method returns FALSE.

Remarks

The framework calls this method when the user clicks the toolbar button.

The default implementation does nothing and returns FALSE. Override this method to return a nonzero value if the button processes the click message.

Requirements

Header: afxtoolbarbutton.h

See Also

Reference

CMFCToolBarButton Class

Hierarchy Chart