GetMenuItemPos

Method of IMenuObject

Finds menu position by command name

  • BSTR strCommandName

Return Value

JavaScript

var ppLocation = MenuObject.GetMenuItemPos(strCommandName);

Visual Basic Script

ppLocation = MenuObject.GetMenuItemPos strCommandName

C++

CComPtr<IMenuLocation> pLocation;
HRESULT hr = MenuObject.GetMenuItemPos(strCommandName, &pLocation);