MFC非背景贴图(也可以用于背景贴图): 在OnDraw中实现: void CintelligentjudgingView::OnDraw(CDC* pDC) { CintelligentjudgingDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); int x=60,y=50; pDC->SetTextColor(RGB(200,0,0)); pDC->TextOutW(x-40,y,(CString)("分析结果:")); CDC memDC; memDC.CreateCompatibleDC(pDC); CBitmap bmp; bmp.LoadBitmap(IDB_BITMAP1); HBITMAP hbm = (HBITMAP)bmp; memDC.SelectObject(hbm); CRect rect; GetClientRect(&rect); BITMAP bm; ::GetObject(hbm,sizeof(bm),&bm); pDC->StretchBlt(x+100,y+20,500,300,&memDC,0,0,bm.bmWidth,bm.bmHeight,SRCCOPY); memDC.DeleteDC(); hbm->unused; CView::OnDraw(pDC); if (!pDoc) return; // TODO: 在此处为本机数据添加绘制代码 }