- 这是从文件里装放位图 **/ BOOL CXxxView::OnDraw(CDC* pDC) { HBITMAP bitmap,OldBitmap; bitmap = (HBITMAP)LoadImage(NULL,”xxx.bmp”,IMAGE_BITMAP,
CDC MemDC; MemDC.CreateCompatibleDC(pDC); OldBitmap=(HBITMAP)MemDC.SelectObject(bitmap); pDC->BitBlt(0,0,400,300,&MemDC;,0,0,SRCCOPY); MemDC.SelectObject(OldBitmap); return TRUE; }0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION);
从文件装载图象
支持原创技术分享,据说打赏我的人,都找到了女朋友!