Class IMenuContext
See Also: Class InterfaceServer, Class IMenuBarContext, Class Interface.
class IMenuContext : public InterfaceServer
Description:
This class is available in release 4.0 and later only.
This class represents the interface to the various menu types such as MenuBar, QuadMenus, and right-click Popup Menus. The class provides the fundamental basis for the ID, Type, and Name.
Methods:
public:
Prototype:
virtual MenuContextId GetId() = 0;
Remarks:
This method returns the Menu Context ID.
Prototype:
virtual MenuContextType GetType() = 0;
Remarks:
This method returns the Menu Contex Type. One of the following values:
kMenuContextMenuBar
The context for the main menu bar.
kMenuContextQuadMenu
The context for the quad menu.
kMenuContextPopupMenu
The context for the Ctrl-right click popup menu.
Prototype:
virtual TSTR& GetName() = 0;
Remarks:
This method returns the name of the Menu Context.