Freigeben über


CMFCPopupMenu::HideRarelyUsedCommands

Indicates whether the pop-up menu can hide rarely used commands.

BOOL HideRarelyUsedCommands() const;

Return Value

TRUE if the pop-up menu can hide the rarely used commands; otherwise FALSE.

Remarks

This method specifies only whether a pop-up menu can hide rarely used commands, not if that configuration is enabled. A pop-up menu can hide rarely used commands if it has a parent button and the parent window is derived from the CMFCMenuBar Class. Use CMFCMenuBar::SetRecentlyUsedMenus to enable this feature and CMFCMenuBar::IsRecentlyUsedMenus to determine if this feature is currently enabled. You must call both of these methods for the parent window.

Requirements

Header: afxpopupmenu.h

See Also

Reference

CMFCPopupMenu Class

Hierarchy Chart

CMFCMenuBar::SetRecentlyUsedMenus

CMFCMenuBar::IsRecentlyUsedMenus