15,979
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
CMenu* mainMenu = AfxGetMainWnd()->GetMenu();
CMenu* sumMenu = mainMenu->GetSubMenu(0);
if ( bEnable)
m_enableMenu = MF_BYCOMMAND ;
else
m_enableMenu = MF_GRAYED ¦MF_DISABLED;
sumMenu->EnableMenuITem(ID_START,m_enableMenu);
sumMenu->EnableMenuITem(ID_GENTest,m_enableMenu);
sumMenu->EnableMenuITem(ID_ListenGY,m_enableMenu);