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


CToolBarCtrl::IsButtonIndeterminate

Determines whether the specified button in a toolbar control is indeterminate.

BOOL IsButtonIndeterminate(
   int nID 
) const;

Параметры

  • [in] nID
    Command identifier of the button in the toolbar.

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

Positive integer if the button is indeterminate, zero if the button is not indeterminate, or -1 if an error occurs.

Заметки

Indeterminate buttons are displayed dimmed, such as the way the bold button on the toolbar of a word processor looks when the selected text contains both bold and regular characters. Consider calling GetState if you want to retrieve more than one button state.

Требования

Header: afxcmn.h

См. также

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

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::Indeterminate

CToolBarCtrl::GetState

CToolBarCtrl::SetState

CToolBarCtrl::IsButtonEnabled

CToolBarCtrl::IsButtonChecked

CToolBarCtrl::IsButtonPressed

CToolBarCtrl::IsButtonHidden

CToolBarCtrl::IsButtonHighlighted