Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Copies text from the toolbar button to a menu.
virtual BOOL ExportToMenuButton(
CMFCToolBarMenuButton& menuButton
) const;
Parameters
- [in] menuButton
A reference to the target menu button.
Return Value
Nonzero if the method succeeds; otherwise 0.
Remarks
This method calls the base class implementation (CMFCToolBarButton::ExportToMenuButton) and then appends to the target menu button a pop-up menu that contains each toolbar menu item in this button. This method does not append sub-menus to the pop-up menu.
This method fails if the parent toolbar, m_pToolBar, is NULL or the base class implementation returns FALSE.
Requirements
Header: afxdropdowntoolbar.h