CFrameWnd::m_bAutoMenuEnable 这个变量控制着菜单的初始化是否禁用问题,你可以在CFrameWnd构造函数里面试试设置它的值。When this data member is enabled (which is the default), menu items that do not have ON_UPDATE_COMMAND_UI or ON_COMMAND handlers will be automatically disabled when the user pulls down a menu. Menu items that have an ON_COMMAND handler but no ON_UPDATE_COMMAND_UI handler will be automatically enabled. When this data member is set, menu items are automatically enabled in the same way that toolbar buttons are enabled.
CFrameWnd::m_bAutoMenuEnable
这个变量控制着菜单的初始化是否禁用问题,你可以在CFrameWnd构造函数里面试试设置它的值。When this data member is enabled (which is the default), menu items that do not have ON_UPDATE_COMMAND_UI or ON_COMMAND handlers will be automatically disabled when the user pulls down a menu.
Menu items that have an ON_COMMAND handler but no ON_UPDATE_COMMAND_UI handler will be automatically enabled. When this data member is set, menu items are automatically enabled in the same way that toolbar buttons are enabled.