初始化函数内加入
// ======= 更新菜单 ===================================
CMenu *subMenu = this->GetMenu()->GetSubMenu(0);
//更改主菜单this->GetMenu()->ModifyMenu(0,MF_BYPOSITION,IDMENU_3, _T("修"));
this->GetMenu()->ModifyMenu(1,MF_BYPOSITION,IDMENU_4e, _T("最"));
this->GetMenu()->ModifyMenu(2,MF_BYPOSITION,IDMENU_4t, _T("fd"));
this->GetMenu()->ModifyMenu(3,MF_BYPOSITION,IDMENU_G5de, _T("ds"));
//以上的ID,需要手动增加到资源文件。
//更改子菜单
subMenu->ModifyMenu(IDMENU_1, MF_BYCOMMAND, IDMENU_OpenSource, _T("dsasad"));
subMenu->ModifyMenu(