Nothing at all:
Black screen:Code:HBITMAP hOldMemBmp= (HBITMAP)::SelectObject(imageDC, hBmp); ::StretchBlt(a::hdcMem, 0, 0, 800, 600, imageDC, 0, 0, BmpW, BmpH, SRCCOPY); ::BitBlt(hDC, invalLocation->left, invalLocation->top, invalLocation->right-invalLocation->left, invalLocation->bottom-invalLocation->top, a::hdcMem, 0, 0, SRCCOPY);
Code:HBITMAP hOldMemBmp= (HBITMAP)::SelectObject(imageDC, hBmp); ::StretchBlt(hMemBmp, 0, 0, 800, 600, imageDC, 0, 0, BmpW, BmpH, SRCCOPY); a::hOldBmp= (HBITMAP)::SelectObject(a::hdcMem, hMemBmp); ::BitBlt(hDC, invalLocation->left, invalLocation->top, invalLocation->right-invalLocation->left, invalLocation->bottom-invalLocation->top, a::hdcMem, 0, 0, SRCCOPY);




Reply With Quote