CHtmlView::ExecFormsCommand

Executes the specified command using the IOleCommandTarget::Exec method.

HRESULT ExecFormsCommand(
   DWORD dwCommandID,
   VARIANT* pVarIn,
   VARIANT* pVarOut
);

Parameters

  • dwCommandID
    The command to be executed. This command must belong to the CMDSETID3_Forms3 group.

  • pVarIn
    Pointer to a VARIANT structure containing input arguments. Can be NULL.

  • pVarOut
    Pointer to a VARIANT structure to receive command output. Can be NULL.

Return Value

A standard HRESULT value. For a complete listing of possible values, see IOleCommandTarget::Exec in the Windows SDK.

Remarks

ExecFormsCommand implements the behavior of the IOleCommandTarget::Exec method.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

CHtmlView::QueryFormsCommand

Other Resources

CHtmlView Members