setContextMenu method
Constructs a context menu, as specified.
Syntax
var retval = external.setContextMenu(menuItemPairs);
Parameters
menuItemPairs [in]
Type: VARIANTSpecifies menu item pairs, which are command text and commands contained within the context menu.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Standards information
There are no standards that apply here.