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;
Параметры
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.
Требования
Header: afxhtml.h