setContextMenu method

[This documentation is preliminary and is subject to change.]

Constructs a context menu, as specified.

Syntax


HRESULT retVal = object.setContextMenu(menuItemPairs);

Standards information

There are no standards that apply here.

Parameters

menuItemPairs [in]

Type: VARIANT

Specifies 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.

 

 

Build date: 6/12/2012

Community Additions

Show: