Compartilhar via


CToolBarCtrl::IsButtonEnabled

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

BOOL IsButtonEnabled( 
   int nID  
) const;

Parameters

  • nID
    Command identifier of the button in the toolbar.

Return Value

Nonzero if the button is enabled; otherwise zero.

Remarks

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::EnableButton

CToolBarCtrl::GetState

CToolBarCtrl::SetState

CToolBarCtrl::IsButtonChecked

CToolBarCtrl::IsButtonPressed

CToolBarCtrl::IsButtonHidden

CToolBarCtrl::IsButtonIndeterminate

CToolBarCtrl::IsButtonHighlighted