In Windows Help, menus don’t run macros; they just display a list of menu items (or commands). Before defining menu items, you must define the menus. To add a menu to the menu bar, you use the InsertMenu macro. This macro has the following syntax:
InsertMenu("menu_id", "menu_text", menu_position)
For example, to insert a menu with the ID “mnu_options” and the text “&Options” (the ampersand turns the letter O into the acceleration key), at the third position on the menu bar, you’d use the following macro:
InsertMenu("mnu_options", "&Options", 2)
The menu_position value starts with zero as the first menu, so the third menu has the value 2. When you insert a menu, all menus to the right of the insertion position are moved to the right. Because the Bookmark menu is in the third position before the insertion, the Options menu would now come after the Edit menu but before the Bookmark menu (Figure 13.2).