AddItem

Method of IMenuObject

Adds new context menu handler or separator when handler is NULL

JavaScript

MenuObject.AddItem(sName, pHandler, ePos);

Visual Basic Script

MenuObject.AddItem sName, pHandler, ePos

C++

HRESULT hr = MenuObject.AddItem(sName, pHandler, ePos);