//插入菜單this
HMENU m_hMenu; 定義變量變量
m_hMenu = LoadMenu(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_MENU1)); //變量關聯菜單
::SetMenu(this->GetSafeHwnd(), m_hMenu);//插入菜單