Freigeben über


CMFCToolBarsCustomizeDialog::AddMenu

Loads a menu from the resources and calls CMFCToolBarsCustomizeDialog::AddMenuCommands to add that menu to the list of commands on the Commands page.

BOOL AddMenu(
   UINT uiMenuResId 
);

Parameters

  • [in] uiMenuResId
    Specifies the resource ID of a menu to load.

Return Value

TRUE if a menu was added successfully; otherwise FALSE.

Remarks

In the call to AddMenuCommands, bPopup is FALSE. As a result, that method does not add menu items that contain submenus to the list of commands. This method does add the menu items in the submenus to the list of commands.

Requirements

Header: afxToolBarsCustomizeDialog.h

See Also

Reference

CMFCToolBarsCustomizeDialog Class

Hierarchy Chart