SHDocVw.IWebBrowser2.ExecWB

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ExecWB(cmdID: OLECMDID; cmdexecopt: OLECMDEXECOPT; const pvaIn: OleVariant;  var pvaOut: OleVariant); safecall;

C++

virtual HRESULT __safecall ExecWB(Winapi::Activex::TOleEnum cmdID, Winapi::Activex::TOleEnum cmdexecopt, const System::OleVariant &pvaIn, System::OleVariant &pvaOut) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
SHDocVw.pas
SHDocVw.hpp
SHDocVw IWebBrowser2

Description

Executes a command.

ExecWB uses the IOleCommandTarget interface to pass a command to the Web browser control. For more information, see the Microsoft documentation of IOleCommandTarget.

cmdID specifies the command to execute. The Web Browser does not support all the commands for which Microsoft provides constants. Use the QueryStatusWB method to determine what commands can be used.

cmdexecopt modifies how the command is executed.

pvaIn specifies a Variant array that contains any input arguments. This value can be omitted if there are no input arguments.

pvaOut specifies a Variant that receives the results of the command, if any. This value can be omitted if there are no results.

See Also