CToolBarCtrl::EnableButton
Enables or disables the specified button in a toolbar control.
BOOL EnableButton(
int nID,
BOOL bEnable = TRUE
);
Параметры
nID
Command identifier of the button to enable or disable.bEnable
TRUE to enable the button; FALSE to disable the button.
Возвращаемое значение
Nonzero if successful; otherwise zero.
Заметки
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.
Требования
Header: afxcmn.h