Click here to Skip to main content
15,902,926 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hello,
I am new in C++, but I need to load some images on my dialog.
The problem is, that images is PNG format. I found this example, and able to load background image http://www.ucancode.net/CPP_Library_Control_Tool/Load-Display-png-image-file-mfc-sample-code.htm . But now I need to load another image on top and keep transparency.
Please help.
Thanks in advance.
Posted

1 solution

You could hold two instances of CImage
( http://msdn.microsoft.com/en-us/library/5eb252d0(VS.80).aspx[^] )
and then use its Load(..) and Draw(..) methods... :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900