The MenuBar_AddMenu() function adds a command list to the menu bar.


MenuBar_AddMenu(command_list_tag {, position})


command_list_tag – The integer tag value specifying the command list to add to the menu bar.

position – An optional integer that specifies the location of the menu. The value 1 indicates the left-most position. The value 0 specifies the menu will be added on the right end of the menu bar.

Return value

An integer indicating whether the menu was added. The value 1 indicates the menu was added, while the value 0 indicates it was not.


When a menu is added at a specified position, any menus already added are shifted one position to the right to make room for the new menu.

Documentation Feedback