64,648
社区成员
发帖
与我相关
我的任务
分享
BOOL CMainFrame::LoadFrame(UINT nIDResource, DWORD dwDefaultStyle, CWnd* pParentWnd, CCreateContext* pContext)
{
// 基类将执行真正的工作
CMenu menu;
menu.Attach(m_wndMenuBar.GetHMenu());
if(menu != NULL)
{
bool b,b1,b2;
b = menu.GetSubMenu(0)->DeleteMenu(0, MF_BYPOSITION);
b1 = menu.GetSubMenu(0)->DeleteMenu(ID_UESR_LAYER_LIST,MF_BYCOMMAND);
b2 = menu.GetSubMenu(0)->DeleteMenu(ID_ADD_NEW_ROUTE,MF_BYCOMMAND);
DrawMenuBar();
}
return TRUE;
}