Share via


CMFCToolBarMenuButton::CreatePopupMenu

Creates a CMFCPopupMenu object to display the toolbar menu.

virtual CMFCPopupMenu* CreatePopupMenu();

Return Value

A pointer to a CMFCPopupMenu object that displays the drop-down menu associated with the toolbar menu button.

Remarks

This method is called by the framework to prepare the display of the drop-down menu associated with the button.

The default implementation just constructs and returns a new CMFCPopupMenu object. Override this method if you want to use a derived type of CMFCPopupMenu Class or to perform additional initialization.

Requirements

Header: afxtoolbarmenubutton.h

See Also

Reference

CMFCToolBarMenuButton Class

Hierarchy Chart

CMFCPopupMenu Class