I have done a few investigations about this issue...
I tried to create a brand new project
In each case of drawing I use only one line either blue or red... The blue one works well... The red does not work...
void Draw(HWND hWnd)
HDC hDC = GetDC(hWnd);
HDC hOffDC = CreateCompatibleDC(hDC);
HBITMAP hBitmap = LoadBitmap(hInstance, MAKEINTRESOURCE(IDB_BITMAP1));
//HBITMAP hBitmap = (HBITMAP)LoadImage(hInstance, TEXT("bitmap1.bmp"), IMAGE_BITMAP, 100, 100, LR_LOADFROMFILE);
BitBlt(hDC, 100, 100, 800, 600, hOffDC, 0, 0, SRCCOPY);
But If I try the same code in different project both work well... I counldt find out the difference between those two projects...
These may cause the issue... What do you suppose?
1) Missing header file
2) Different settings of the project
3) Different setting of the resource file
I have no idea how come in one project same code work and in different fail.