Compartilhar via


CToolBarCtrl::IsButtonIndeterminate

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

BOOL IsButtonIndeterminate(
   int nID 
) const;

Parameters

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

Return Value

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

Remarks

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.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

CToolBarCtrl::Indeterminate

CToolBarCtrl::GetState

CToolBarCtrl::SetState

CToolBarCtrl::IsButtonEnabled

CToolBarCtrl::IsButtonChecked

CToolBarCtrl::IsButtonPressed

CToolBarCtrl::IsButtonHidden

CToolBarCtrl::IsButtonHighlighted