CToolBarCtrl::HideButton
Hides or shows the specified button in a toolbar control.
BOOL HideButton(
int nID,
BOOL bHide = TRUE
);
Parameters
nID
Command identifier of the button to hide or show.bHide
TRUE to hide the button, FALSE to show it.
Return Value
Nonzero if successful; otherwise zero.
Remarks
If you want to change more than one button state, consider calling SetState instead.
Requirements
Header: afxcmn.h