Click to return to the Reusing Browser Technology home page    
IHTMLTxtRange::duplicate ...     IHTMLTxtRange::execComman...     IHTMLTxtRange Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLTxtRange::execCommand Method


Executes the given command over the current selection or text range.

Syntax

HRESULT execCommand(
    BSTR cmdID,
    VARIANT_BOOL showUI,
    VARIANT value,
    VARIANT_BOOL *pfRet
);

Parameters

cmdID
Identifier of a command. Can be any command identifier given in the list of Command Identifiers.
showUI
Flag that specifies whether to display a user interface if the command supports one. If TRUE, the command displays a user interface, if applicable; otherwise, it doesn't.
value
Value to pass to the command. Possible values depend on the value of cmdID.
pfRet
Address of a variable that receives TRUE if the function is successful, or FALSE otherwise.

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

execCommandShowHelp


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.