Share via


CMFCPopupMenuBar::ImportFromMenu

Imports popup menu buttons from a specified menu.

virtual BOOL ImportFromMenu(
   HMENU hMenu,
   BOOL bShowAllCommands = FALSE
);

Parameters

  • [in] hMenu
    The menu from which to import the popup menu buttons.

  • [in] bShowAllCommands
    TRUE if all commands on the menu are to be imported, or FALSE if rarely used ones may be hidden.

Return Value

Returns TRUE if the menu buttons were successfully imported from the menu, or FALSE if not.

Requirements

Header: afxpopupmenubar.h

See Also

Reference

CMFCPopupMenuBar Class

Hierarchy Chart