Can you share the code you are having problem with.

Here is the simple one which loads an image and draws on the DC in the paint of the DialogBased app
In InitDialog
Code:
m_hBmp = ::LoadImage(NULL,"E:\\flowers.bmp",IMAGE_BITMAP,NULL,NULL,LR_LOADFROMFILE|LR_DEFAULTSIZE);
In Paint
Code:
CDC dcSrc;
dcSrc.CreateCompatibleDC(NULL);
dcSrc.SelectObject(m_hBmp);
dc.StretchBlt(0,0,100,100,&dcSrc,0,0,100,100,SRCCOPY);
Of course the 0,0,100,100 should be adjusted with your rect.