//插入菜单
HMENU m_hMenu; 定义变量
m_hMenu = LoadMenu(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_MENU1)); //变量关联菜单
::SetMenu(this->GetSafeHwnd(), m_hMenu);//插入菜单
时间: 2024-12-30 01:54:39
//插入菜单
HMENU m_hMenu; 定义变量
m_hMenu = LoadMenu(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_MENU1)); //变量关联菜单
::SetMenu(this->GetSafeHwnd(), m_hMenu);//插入菜单