ICommandUI::Enabled
Enables or disables the user interface item for this command.
property bool Enabled;
Remarks
This property enables or disables the user interface item for this command. Set Enabled to TRUE to enable the item, FALSE to disable it.
Requirements
Header: afxwinforms.h