InsertItem

Method of IMenuObject

Inserts new context menu handler or separator when handler is NULL

JavaScript

MenuObject.InsertItem(nPosition, sName, pHandler);

Visual Basic Script

MenuObject.InsertItem nPosition, sName, pHandler

C++

HRESULT hr = MenuObject.InsertItem(nPosition, sName, pHandler);