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
//Create a device context to load the bitmap into
//Get the Display area available
//select the bitmap into compatible device context
CBitmap* pOldBitmap = (CBitmap*)dcMem.SelectObject
//copy & resize the window to the dialog window
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.