SHDocVw.TWebBrowser.ExecWB

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

void __fastcall ExecWB(Winapi::Activex::TOleEnum cmdID, Winapi::Activex::TOleEnum cmdexecopt)/* overload */;
void __fastcall ExecWB(Winapi::Activex::TOleEnum cmdID, Winapi::Activex::TOleEnum cmdexecopt, const System::OleVariant &pvaIn)/* overload */;
void __fastcall ExecWB(Winapi::Activex::TOleEnum cmdID, Winapi::Activex::TOleEnum cmdexecopt, const System::OleVariant &pvaIn, System::OleVariant &pvaOut)/* overload */;

Properties

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

Description

Executes a command.

ExecWB lets you use 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 of the commands for which Microsoft providesconstants. 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 not input arguments.

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

See Also