CHtmlView::QueryFormsCommand
Queries for the status of one or more commands generated by user interface events.
HRESULT QueryFormsCommand(
DWORD dwCommandID,
BOOL* pbSupported,
BOOL* pbEnabled,
BOOL* pbChecked
);
Parameters
dwCommandID
The identifier of the command being queried for.pbSupported
A pointer to a BOOL specifying if the command (identified by dwCommandID) is supported. If TRUE, the command is supported; otherwise FALSE.pbEnabled
A pointer to a BOOL specifying if the command (identified by dwCommandID) is enabled. If TRUE, the command is supported; otherwise FALSE.pbChecked
A pointer to a BOOL specifying if the command (identified by dwCommandID) is checked. If TRUE, the command is supported; otherwise FALSE.
Return Value
A standard HRESULT value. For a complete listing of possible values, see IOleCommandTarget::QueryStatus in the Windows SDK.
Remarks
QueryFormsCommand implements the behavior of the IOleCommandTarget::QueryStatus method.
Requirements
Header: afxhtml.h