CToolBarCtrl::EnableButton

BOOL EnableButton( int nID, BOOL bEnable = TRUE );

Return Value

Nonzero if successful; otherwise zero.

Parameters

nID

Command identifier of the button to enable or disable.

bEnable

TRUE to enable the button; FALSE to disable the button.

Remarks

Call this function to enable or disable the specified button in a toolbar control. When a button has been enabled, it can be pressed and checked. If you want to change more than one button state, consider calling SetState instead.

CToolBarCtrl OverviewClass MembersHierarchy Chart

See Also   CToolBarCtrl::IsButtonEnabled, CToolBarCtrl::CheckButton, CToolBarCtrl::PressButton, CToolBarCtrl::HideButton, CToolBarCtrl::Indeterminate, CToolBarCtrl::GetState, CToolBarCtrl::SetState