The ProvideMenuItems method of the IOlapAddIn interface enables default menu items and adds new menu items to the current tree node.
Sub ProvideMenuItems(CurrentNode As OlapTreeNode, MenuItems As OlapMenuItems)
CurrentNode
The OlapTreeNode object that is selected for menu display in the tree pane when users right-click.
MenuItems
A collection of OlapMenuItem objects.
This method responds when the calling subroutine sends a request for default menu items to be enabled or for new menu items to be added. When your add-in enables default menu items, it should also provide associated child menu items.
Note You should initialize the enumerations provided for menu items and menu actions added to MenuItems with a positive, nonzero value. Enumerations initialized to zero may cause unpredictable results when this method provides menu items for a custom add-in.