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

IHTMLTxtRange::queryCommandState Method


Retrieves the current status of the given command. The status indicates whether the command has been carried out on the object.

Syntax

HRESULT queryCommandState(
    BSTR cmdID,
    VARIANT_BOOL *pfRet 
);

Parameters

cmdID
Identifier of a command. Can be any one of those given in the list of Command Identifiers.
pfRet
Address of a variable that receives TRUE if the given command has been carried out, FALSE if it has not, or NULL if the function cannot determine the status of the command.

Return Value

Returns S_OK if successful, or an error code otherwise.



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.