Visual c++ 加载 rtf 文档在 Richedit 框中包含图像和文本? [英] Visual c++ load rtf document contains images and text in richedit box?

查看:22
本文介绍了Visual c++ 加载 rtf 文档在 Richedit 框中包含图像和文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在做一个项目.我有一个 rtf 文件,其中包含一些文本和图像.我需要在 Visual C++ 中将这些图像和文本从 rtf 显示到 Richtextbox.我们没有使用 .Net 框架或 MFC,所以一切都只在 Visual C++ 中.

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.

推荐答案

RichTextBox 无法加载 HTML.它只能加载 RTF 或纯文本.

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

有 3rd 方组件可以将 HTML 转换为 RTF,但它们并没有真正做好,尤其是在处理图像时.我为我的便签产品 Notezilla 对此进行了深入研究.

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.

您可以使用 Web 浏览器控件来显示您的 HTML.

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

这篇关于Visual c++ 加载 rtf 文档在 Richedit 框中包含图像和文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆