在CView里现实一些图片
可是在刷新的过程中内存越来越大, 不知如何解决.void CZYFloatView::PrintBMP(CDC * pDC,CString bmppath, CRect rect)
{
hDesDC = pDC->m_hDC;
hSrcDC = CreateCompatibleDC(hDesDC);
hBitmap=(HBITMAP)LoadImage(AfxGetInstanceHandle(),bmppath,IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION);
GetObject(hBitmap, sizeof BITMAP , &bm);
SelectObject(hSrcDC, hBitmap);
::SetStretchBltMode(hDesDC,COLORONCOLOR);  
//::StretchBlt(hDesDC, rect.left, rect.top, 222,222, hSrcDC, 0, 0, bm.bmWidth, bm.bmHeight,+SRCCOPY);
::StretchBlt(hDesDC, rect.left, rect.top, rect.right-rect.left, rect.bottom-rect.top, hSrcDC, 0, 0, bm.bmWidth, bm.bmHeight,+SRCCOPY);}