Visual c++ load rtf document contains images and text in richedit box?

折月煮酒 提交于 2021-02-11 18:18:20

问题


I am currently working on a project. I have an rtf file which contains some text and images both. I need to display those images and text from rtf to richtextbox in Visual C++. We are not using .Net frameworks or MFC's so everything is in Visual C++ only.

I do'nt have any idea how to do it. If anyone can guide me then it will be really helpful. Thanks in advance.


回答1:


RichTextBox cannot load HTML. It can load only RTF or plain text.

There are 3rd party components that can convert HTML to RTF, but they don't really do a good job especially when dealing with images. I had done intensive research on this for my sticky notes product Notezilla.

You can use the Web Browser control to show your HTML.



来源:https://stackoverflow.com/questions/22097956/visual-c-load-rtf-document-contains-images-and-text-in-richedit-box

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!