Partager via


CMFCDropDownToolbarButton::OnContextHelp

Called by the framework when the parent toolbar handles a WM_HELPHITTEST message.

virtual BOOL OnContextHelp(
   CWnd* pWnd
);

Parameters

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

Return Value

Nonzero if the button processes the help message; otherwise 0.

Remarks

This method extends the base class implementation (CMFCToolBarButton::OnContextHelp) by calling the CMFCDropDownToolbarButton::OnClick method with bDelay set to FALSE. This method returns the value that is returned by CMFCDropDownToolbarButton::OnClick.

For more information about the WM_HELPHITTEST message, see TN028: Context-Sensitive Help Support.

Requirements

Header: afxdropdowntoolbar.h

See Also

Reference

CMFCToolBarButton Class

Hierarchy Chart

CMFCToolBarButton::OnContextHelp

CMFCDropDownToolbarButton::OnClick

TN028: Context-Sensitive Help Support