AddSubMenu

Method of IMenuObject

Adds sub menu

Return Value

JavaScript

var ppSubMenu = MenuObject.AddSubMenu(sName, ePos);

Visual Basic Script

ppSubMenu = MenuObject.AddSubMenu sName, ePos

C++

CComPtr<IMenuObject> pSubMenu;
HRESULT hr = MenuObject.AddSubMenu(sName, ePos, &pSubMenu);