The process I think may help you is:
HBITMAP hBitmap = (HBITMAP)LoadImage(NULL, FileName , IMAGE_BITMAP, 0, 0,LR_LOADFROMFILE | LR_CREATEDIBSECTION); //not sure on some of the flagsHDC BitmapDC = CreateCompatibleDC (NULL); SelectObject(BitmapDC, hBitmap); HDC WindowDC = GetDC (HWND hWindow);BitBlt(WindowDC, x, y, width, height, BitmapDC, 0, 0, SRCCOPY);ReleaseDC(WindowDC);
NOTE:
I haven't tested this in any way/shape/form, it's based upon some code I wrote to load bitmaps to a directdraw surface, so no guarantees.
I felt bad 'coz hardly anyone seemed to have helped you on this, and I hope this helps.
- Jamie
[edit] fixed up dodgy source formatting
Waassaap!!
Edited by - mr_jrt on October 6, 2000 4:05:33 PM