Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- tool
- A Tool enumeration value associated with the menu item.
- topMenuId
- An integer value which represents the top-level menu ID.
- subMenuId
- An integer value which represents the sub-level menu ID.
- enabled
- A boolean value which is true to enable the menu item. Otherwise, false should be set.
- exclusive
- A boolean value which is true when the menu item is enabled and all other menu items on the same menu level are disabled. Otherwise, use false when the menu item is enabled and all other menu items on the same menu level do not have to be disabled.
When a menu item is enabled, the application end-user can select the menu item. Items that are enabled appear in dark print. Items that are not enabled are grayed out.