int CMenu2Dlg::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDialog::OnCreate(lpCreateStruct) == -1) return -1; // TODO: Add your specialized creation code here CMenu menu; menu.LoadMenu(IDR_MENU1); SetMenu(&menu); menu.Detach(); return 0; } n