CToolBarCtrl::PressButton

BOOL PressButton( int nID, BOOL bPress = TRUE );

Return Value

Nonzero if successful; otherwise zero.

Parameters

nID

Command identifier of the button to press or release.

bPress

TRUE to press the specified button; FALSE to release the specified button.

Remarks

Call this function to press or release the specified button in a toolbar control. If you want to change more than one button state, consider calling SetState instead.

CToolBarCtrl OverviewClass MembersHierarchy Chart

See Also   CToolBarCtrl::IsButtonPressed, CToolBarCtrl::EnableButton, CToolBarCtrl::CheckButton, CToolBarCtrl::HideButton, CToolBarCtrl::Indeterminate, CToolBarCtrl::GetState, CToolBarCtrl::SetState