共用方式為


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

See Also

Reference

ICommandUI Interface

Other Resources

ICommandUI Members