다음을 통해 공유


CToolBarCtrl::Indeterminate

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

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

Parameters

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

Return Value

Nonzero if successful; otherwise zero.

Remarks

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.

Requirements

Header: afxcmn.h

See Also

Concepts

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::AddButtons

CToolBarCtrl::IsButtonIndeterminate

CToolBarCtrl::EnableButton

CToolBarCtrl::CheckButton

CToolBarCtrl::PressButton

CToolBarCtrl::HideButton

CToolBarCtrl::GetState

CToolBarCtrl::SetState