Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I googled and do much searched on codeproject,I cann't find a solution can display jpg and png in RichEdit,
Any points is Good!
Posted
Updated 9-Mar-12 23:06pm
v2

1 solution

I am not sure that you can. A RichEdit control is used for handling text not images; see here[^] for more information.
 
Share this answer
 
Comments
jiazhiqiang 10-Mar-12 6:00am    
The .bmp file is normally supported by RichEdit,but I need about 200+ bmp files.this type of file is 6-8 times bigger than png or gif,I don't need animation feature of gif,I just what static picture.

So I Need to load more smaller type file,eg:png or gif reside in Dll or Disk,I need load them and output in RichEdit2.0.

(Vs2008 MFC VC++)
Richard MacCutchan 10-Mar-12 7:12am    
Sorry, I was not aware of that, but I assume loading a png or jpg is the same as a bmp file. How would you normally add a bmp file to the control?
Nelek 10-Mar-12 8:32am    
Maybe it is not so easy. I don't know in the new versions of VS, but I faced problems with pic-format time ago. I was lucky I didn't have any restriction/problem as the OP, so I just changed things to *.bmp and didn't investigate so much.
Sergey Alexandrovich Kryukov 11-Mar-12 0:10am    
It is possible: put an image on the clipboard and paste in the rich edit. I tried it, it works but ugly, of course.
--SA

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