Share via


CMFCDropDownToolbarButton::OnChangeParentWnd

Called by the framework when the button is inserted into a new toolbar.

virtual void OnChangeParentWnd(
   CWnd* pWndParent
);

Parameters

  • [in] pWndParent
    The new parent window.

Remarks

This method overrides the base class implementation (CMFCToolBarButton::OnChangeParentWnd) by clearing the text label (CMFCToolBarButton::m_strText) and setting the CMFCToolBarButton::m_bText and CMFCToolBarButton::m_bUserButton data members to FALSE.

Requirements

Header: afxdropdowntoolbar.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCDropDownToolbarButton Class

CMFCToolBarButton::OnChangeParentWnd

CMFCToolBarButton::m_strText

CMFCToolBarButton::m_bText

CMFCToolBarButton::m_bUserButton