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


CToolBarCtrl::Indeterminate

Sets or clears the indeterminate state of the specified button in a toolbar control.

BOOL Indeterminate(
   int nID,
   BOOL bIndeterminate = TRUE 
);

Параметры

  • nID
    Command identifier of the button whose indeterminate state is to be set or cleared.

  • bIndeterminate
    TRUE to set the indeterminate state for the specified button, FALSE to clear it.

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

Nonzero if successful; otherwise zero.

Заметки

Indeterminate buttons are displayed grayed, such as the way the bold button on the toolbar of a word processor would look when the text selected contains both bold and regular characters. If you want to change more than one button state, consider calling SetState instead.

Требования

Header: afxcmn.h

См. также

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

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::AddButtons

CToolBarCtrl::IsButtonIndeterminate

CToolBarCtrl::EnableButton

CToolBarCtrl::CheckButton

CToolBarCtrl::PressButton

CToolBarCtrl::HideButton

CToolBarCtrl::GetState

CToolBarCtrl::SetState