CString m_strSysPath; Project::Tools::GetSysPath(m_strSysPath);//獲取運行地址 // TODO: 在此添加控件通知處理程序代碼 //這里簡單的繪制一下背景,就省略了一些 復雜的 操作 //獲取到DC CDC* pDC = GetDC(); //你需要繪制的目標 CRect clientRect; GetClientRect(&clientRect); //載入你的圖片 Gdiplus::Bitmap * lpBmp =Gdiplus::Bitmap::FromFile( m_strSysPath + L"\\Images\\backgroudImg\\backgroudImg_1.png" ); //綁定你 的DC Gdiplus::Graphics graph(pDC->m_hDC); //開始繪制操作 graph.DrawImage(lpBmp,0,0,140,37); graph.ReleaseHDC(pDC->m_hDC); delete lpBmp;