XLL+ Class Library (6.3)

CXlMenu Methods

The methods of the CXlMenu class are listed here.

Construction

public method CXlMenu Constructs a CXlMenu object without displaying it

Pre-create functions

public method AddItem Adds a menu item
public method SetTexts Sets the menu text and (optionally) description

Creation functions

public method Create Adds the menu or sub-menu to the Excel main application menu bar
public method Destroy Removes the menu from Excels' application menu bar.

Item methods

public method CheckItem Set the chcked state of an item in a menu
public method DeleteItem Deletes an item from a menu
public method EnableItem Enables or disables an item in a menu
public method ReplaceItem Replaces an item in a menu

Service functions

public method static method GetCallingMenu Determine which menu item called the current add-in function

Requirements

Header: xlmenu.h

See Also

CXlMenu Class | xlmenu.h | Menus (User Guide) | Simple menus sample | Advanced menus sample | CXllApp object