RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebBrowser.ExecWB Method (OLECMDID, OLECMDEXECOPT)

Executes a command.

Pascal
procedure ExecWB(cmdID: OLECMDID; cmdexecopt: OLECMDEXECOPT); overload;
procedure ExecWB(cmdID: OLECMDID; cmdexecopt: OLECMDEXECOPT; var pvaIn: OleVariant); overload;
procedure ExecWB(cmdID: OLECMDID; cmdexecopt: OLECMDEXECOPT; var pvaIn: OleVariant; var pvaOut: OleVariant); overload;
C++
__fastcall ExecWB(OLECMDID cmdID, OLECMDEXECOPT cmdexecopt);
__fastcall ExecWB(OLECMDID cmdID, OLECMDEXECOPT cmdexecopt, OleVariant pvaIn);
__fastcall ExecWB(OLECMDID cmdID, OLECMDEXECOPT cmdexecopt, OleVariant pvaIn, OleVariant pvaOut);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!