Click here to Skip to main content
15,889,751 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I will only MFC load bmp image, but do not know how to load the display png image?

What I have tried:

I will only MFC load bmp image, but do not know how to load the display png image?
Posted
Updated 24-Jul-17 2:31am

1 solution

You can use the CImage Class[^].

Pass the file name to the Load() function and use the HBITMAP operator to show the image (pass it to functions accepting a HBITMAP or a CBitmap).
 
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