得到当前View中的菜单 |
CMenu *pTopMenu; |
得到菜单上某一菜单 |
CMenu *pTopMenu, *pSubMenu; |
向菜单中添加一项 |
CString menuName = "MyMenu"; |
删除一个菜单 |
pSubMenu->RemoveMenu(menuIndex, MF_BYPOSITTION); |
得到当前View中的菜单 |
CMenu *pTopMenu; |
得到菜单上某一菜单 |
CMenu *pTopMenu, *pSubMenu; |
向菜单中添加一项 |
CString menuName = "MyMenu"; |
删除一个菜单 |
pSubMenu->RemoveMenu(menuIndex, MF_BYPOSITTION); |