Hi
This time I am trying to develop some little app. which is able to work a little with images mainly BMP format.
I would like to avoid the annoying flashing the client rect while it is being redrawn when I for eg. move a bitmap.Code:HDC hDC; HDC hOffScreenDC; PAINTSTRUCT ps; (object _pPic;) InvalidateRect(hWnd, NULL, TRUE); hDC = BeginPaint(hWnd, &ps); _pPic->Draw(hOffScreenDC); BitBlt(hDC, 0, 0, 640, 480, hOffScreenDC, 0, 0, SRCCOPY); EndPaint(hWnd, &ps); ReleaseDC(hWnd, hDC);
I saw a programme which used the BitBlt() and it worked without any problem... Mine code does not work, can you tell me why? The code is not correct is it?



LinkBack URL
About LinkBacks


