CToolBarCtrl::SetState

BOOLSetState(intnID**,UINTnState);**

Return Value

Nonzero if successful; otherwise zero.

Parameters

nID

Command identifier of the button.

nState

State flags. It can be a combination of the values listed for button states in CToolBarCtrl::AddButtons.

Remarks

Call this function to set the state for the specified button in a toolbar control.

This function is especially handy if you want to set more than one of the button states. To just set one state, use one of the following member functions: EnableButton, CheckButton, HideButton, Indeterminate, or PressButton.

CToolBarCtrl OverviewClass MembersHierarchy Chart

See Also   CToolBarCtrl::GetState, CToolBarCtrl::AddButtons, CToolBarCtrl::EnableButton, CToolBarCtrl::CheckButton, CToolBarCtrl::HideButton, CToolBarCtrl::Indeterminate, CToolBarCtrl::PressButton