Click to return to the Reusing Browser Technology home page    
IHTMLControlRange::item M...     IHTMLControlRange::queryC...     IHTMLControlRange Interfa...    
Web Workshop  |  Reusing Browser Technology

IHTMLControlRange::queryCommandEnabled Method


Determines whether the given command is currently available.

Syntax

HRESULT queryCommandEnabled(
    BSTR cmdID, 
    VARIANT_BOOL *pfRet
);

Parameters

cmdID
String (BSTR) that contains an identifier of a command. It can be any command identifier given in the list of Command Identifiers.
pfRet
Address of a VARIANT Boolean structure that receives VARIANT_TRUE if the command is available, or VARIANT_FALSE otherwise.

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.