Поделиться через


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
);

Параметры

  • 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.

Возвращаемое значение

A standard HRESULT value. For a complete listing of possible values, see IOleCommandTarget::QueryStatus in the Windows SDK.

Заметки

QueryFormsCommand implements the behavior of the IOleCommandTarget::QueryStatus method.

Требования

Header: afxhtml.h

См. также

Основные понятия

CHtmlView Class

CHtmlView Members

Hierarchy Chart

CHtmlView::QueryFormsCommand

CHtmlView::QueryStatusWB