Returns a Boolean value that indicates whether the current command is supported on the current range.
HRESULT queryCommandSupported( BSTR cmdID, VARIANT_BOOL *pfRet );
- [in] BSTR that specifies a command identifier.
- [out, retval] Pointer to a VARIANT_BOOL that returns one of the following possible values:
- The command is supported.
- The command is not supported.
Returns S_OK if successful, or an error value otherwise.
This method is a wrapper function for the IOleCommandTarget::QueryStatus method to enable scriptable execution of some command constants. You can obtain an IOleCommandTarget interface by calling QueryInterface on the IHTMLTxtRange interface using IID_IHTMLTxtRange for the IID.