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.
InvalidateRect(hWnd, NULL, TRUE);
hDC = BeginPaint(hWnd, &ps);
BitBlt(hDC, 0, 0, 640, 480, hOffScreenDC, 0, 0, SRCCOPY);
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?