CMFCDropDownToolbarButton::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
Nonzero if the button processes the click message; otherwise 0.
Remarks
This method extends the base class implementation, CMFCToolBarButton::OnClick, by updating the state of the drop-down toolbar.
When a user clicks the toolbar button, this method creates a timer that waits the length of time specified by the CMFCDropDownToolbarButton::m_uiShowBarDelay data member and then opens the drop-down toolbar by using the CMFCDropDownToolbarButton::DropDownToolbar method. This method closes the drop-down toolbar the second time the user clicks the toolbar button.
Requirements
Header: afxdropdowntoolbar.h
See Also
Reference
CMFCDropDownToolbarButton Class