Create New Menus

Create and Edit Pull-Down and Shortcut Menus

Specify the Index Parameter

Add New Menu Items to a Menu
To
add a new menu item to a menu, use the AddMenuItem method. This method
creates a new PopupMenuItem object and adds it to the designated menu.
The AddMenuItem method takes four parameters
as input: Index, Label, Tag, and Macro.