November 19th, 2010, 03:39 AM
[RESOLVED] Resource Defined BitMap Not Working or Showing
I am trying to make a Yahtzee game and I have 6 bitmaps representing the 6 possible rolls. The trouble is the code I am using, which seems correct at first glance and compiles but is not showing the bit map in my dialog.
Any tips are appreciated.
BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
HDC hDC, MemDCFull;
hDC = BeginPaint(hwndDlg, &Ps);
bmpFull = LoadBitmap(hInst, MAKEINTRESOURCE(IDB_BITMAP1));
MemDCFull = CreateCompatibleDC(hDC);
BitBlt(hDC, 50, 50, 32, 32, MemDCFull, 32, 32, SRCCOPY);
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
hInst = hInstance;
return DialogBox(hInstance, MAKEINTRESOURCE(DLG_MAIN), NULL, (DLGPROC)DialogProc);
edit: the bitmaps are only 32x32 - is that too small?
Last edited by Morbane; November 19th, 2010 at 03:42 AM.
November 19th, 2010, 03:55 AM
Re: Resource Defined BitMap Not Working or Showing
Apparently My bitmaps were corrupt!!!
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!