If you can format the code a bit more using
BB code it will be easier for us to go through the codes
Below are MFC code but I have commented so that you as Win32 programmer can also understand
Code:
//Create a device context to load the bitmap into
CDC dcMem;
dcMem.CreateCompatibleDC(pdc);
//Get the Display area available
CRect lRect;
GetClientRect(lRect);
lRect.NormalizeRect();
//select the bitmap into compatible device context
CBitmap* pOldBitmap = (CBitmap*)dcMem.SelectObject
(&m_bmpBitmap);
//m_bmpBitmap.SetBitmapDimension(lRect.Width(),lRect.Height());
//copy & resize the window to the dialog window
pdc->StretchBlt(0,0,lRect.Width(),lRect.Height(),&dcMem,0,0,bm.bmWidth,bm.bmHeight,SRCCOPY);
The above code will not run but just have the concept of displaying the bitmap.
If you want I can give you the code in which above code is running.
Thanks
Shabbir Bhimani