Partager via


CMFCToolBarMenuButton::IsEmptyMenuAllowed

Specifies whether menu items shows empty submenus.

virtual BOOL IsEmptyMenuAllowed() const;

Return Value

TRUE if the framework opens a submenu from the currently selected menu item even when the submenu is empty; otherwise FALSE.

Remarks

The framework calls this method when a user tries to open the submenu from the currently selected menu item. If the submenu is empty and IsEmptyMenuAllowed returns FALSE, the submenu will not open.

The default implementation returns FALSE. Override this method to customize this behavior.

Requirements

Header: afxtoolbarmenubutton.h

See Also

Reference

CMFCToolBarMenuButton Class

Hierarchy Chart