CToolBarCtrl::CheckButton

BOOL CheckButton( int nID, BOOL bCheck = TRUE );

Return Value

Nonzero if successful; otherwise zero.

Parameters

nID

Command identifier of the button to check or clear.

bCheck

TRUE to check the button, FALSE to clear it.

Remarks

Call this function to check or clear a given button in a toolbar control. When a button has been checked, it appears to have been pressed. If you want to change more than one button state, consider calling SetState instead.

CToolBarCtrl OverviewClass MembersHierarchy Chart

See Also   CToolBarCtrl::IsButtonChecked, CToolBarCtrl::EnableButton, CToolBarCtrl::PressButton, CToolBarCtrl::HideButton, CToolBarCtrl::Indeterminate, CToolBarCtrl::GetState, CToolBarCtrl::SetState