Skip to main content
A collection of IMenuItem interfaces. Represents the main window menu. For all items of this menu, the TCommandID property returns CI_SubMenu.

Methods

Reset destroys the current IMainMenu object and generates a new one. All references to the old object become invalid, and using one generates an exception.
After calling Reset, define a new object or reinitialize the existing one. The following sample code applies the Reset method to an object. The menu object then becomes invalid and cannot be referenced.