|
-
May 3rd, 2012, 11:30 AM
#1
Displaying a bitmap from memory to a Dialog or CStatic
Dear Experts.
Im trying to Display BMP file, but that is stored in a buffer in memory I dont want to write it down to a file to re-open later im trying to find an elegant solution since I want to save system resources.
well I found this article but im not that experienced with Device contexts and HBitmaps.
I found this article at code guru:
http://www.codeguru.com/cpp/g-m/bitm...a-BMP-file.htm
it looks like exaclty what i need it loads it from a file but its ok i can modify that latter but my problem is that i dont quite understand it, for example:
void DrawDIB( CDC* pDC, HGLOBAL hDIB, CPalette *pPal )
this is the function that should draw the image but it receives a CDC* pDC what would be the difference with a HDC.
also how would i use this function to display that file to a CStatic or even the in the Dialog body would work for me.
Thx in Advance!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|