Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- tool
- The Tool enumeration value which represents the tool that the menu is associated with.
- topMenuId
- An integer value which represents the top menu ID.
- subMenuId
- An intger value which represents the sub menu ID.
Return Value
A boolean value which is true if the menu item text was deleted. Otherwise, false is returned.If the menu item is to be a top-level menu item, then the subMenuId should be 0. However, this will delete all sub-level menu items as well for that top-level menu item.
If the topMenuId and subLevelId are both 0, then the entire menu is cleared.