SECIContextMenuImpl::AddCommand

HRESULTSECIContextMenuImpl::AddCommand(UINTnIDName, UINTnIDHelpString)

This method adds a context menu command to the list of commands that will be added to the context menu. Commands can either be added from resources or literal strings. As an alternative, you can use the Command Map Macros, which call this method internally.

Defined in: SECIContextMenuImpl.h

Return Value

HRESULT Return S_OK if all the command are successfully loaded, otherwise return E_FAIL.

Parameters

nIDName

The resource ID of the string to be used as context menu text.

nIDHelpString

The resource ID of the string to be used as the help string for this context menu item.