Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== GetMenuItemPos ====== Method of [[:scripting:api:menu-object:start|IMenuObject]] ===== Description ===== Finds menu position by command name ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strCommandName** ==== Return Value ==== * [[:scripting:api:menu-location:start|IMenuLocation]] **ppLocation** ===== Syntax ===== ==== JavaScript ==== <code javascript> var ppLocation = MenuObject.GetMenuItemPos(strCommandName); </code>==== Visual Basic Script ==== <code vb> ppLocation = MenuObject.GetMenuItemPos strCommandName </code>==== C++ ==== <code cpp> CComPtr<IMenuLocation> pLocation; HRESULT hr = MenuObject.GetMenuItemPos(strCommandName, &pLocation); </code>===== See Also ===== [[:scripting:api:menu-object:start|IMenuObject]] ~~NOTOC~~