Condividi tramite


CMFCToolBarButton::OnUpdateToolTip

Called by the framework when the parent toolbar updates its tooltip text.

virtual BOOL OnUpdateToolTip(
   CWnd* pWndParent,
   int iButtonIndex,
   CToolTipCtrl& wndToolTip,
   CString& str
);

Parameters

  • [in] pWndParent
    The parent window.

  • [in] iButtonIndex
    The zero-based index of the button in the parent button collection.

  • [in] wndToolTip
    The control that displays the tooltip text.

  • [out] str
    A CString object that receives the updated tooltip text.

Return Value

This method returns FALSE.

Remarks

The default implementation of this method does nothing and returns FALSE. Override this method to return a nonzero value if you provide a tooltip text string.

Requirements

Header: afxtoolbarbutton.h

See Also

Reference

CMFCToolBarButton Class

Hierarchy Chart