Share via


CMFCToolBarMenuButton::CreateMenu

Creates a menu that consists of the commands in the toolbar menu. Returns a handle to the menu.

virtual HMENU CreateMenu() const;

Return Value

A handle to the menu if success. NULL if the list of commands associated with the toolbar menu button is empty.

Remarks

You can override this method in a derived class to customize the way the menu is generated.

Requirements

Header: afxtoolbarmenubutton.h

See Also

Reference

CMFCToolBarMenuButton Class

Hierarchy Chart