//插入菜单
HMENU m_hMenu; 定义变量
m_hMenu = LoadMenu(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_MENU1)); //变量关联菜单
::SetMenu(this->GetSafeHwnd(), m_hMenu);//插入菜单