InsertSubMenu

Method of IMenuObject

Insert sub menu

Return Value

JavaScript

var ppSubMenu = MenuObject.InsertSubMenu(nPosition, sName);

Visual Basic Script

ppSubMenu = MenuObject.InsertSubMenu nPosition, sName

C++

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