Export (0) Print
Expand All
MFC
Expand Minimize

CHtmlEditCtrlBase::ExecCommand 

Executes a command.


HRESULT ExecCommand(
   long cmdID,
   long cmdExecOpt,
   VARIANT* pInVar = NULL,
   VARIANT* pOutVar = NULL 
) const;
HRESULT ExecCommand(
   const GUID* pGuid,
   long cmdID,
   long cmdExecOpt,
   VARIANT* pInVar = NULL,
   VARIANT* pOutVar = NULL 
) const;

Parameters

cmdID

The command ID to be executed. For a list, see MSHTML Command Identifiers.

cmdExecOpt

Values taken from the OLECMDEXECOPT enumeration, which describe how the object should execute the command.

pInVar

The input arguments.

pOutVar

The command output.

pGuid

The GUID of the command group.

Returns S_OK on success, or an error HRESULT on failure.

This method provides the functionality of IOleCommandTarget::Exec.

Community Additions

ADD
Show:
© 2015 Microsoft