15,978
社区成员
发帖
与我相关
我的任务
分享
CMFCMenuBar m_wndMenuBar; // CMainFrame类中定义的成员变量
....
CMenu menu;
menu.Attach(m_wndMenuBar.GetHMenu());
CString strText;
menu.GetSubMenu(0)->GetMenuString(ID_MENU, strText, MF_BYCOMMAND);
menu.Detach();
AfxMessageBox(strText);