如何在MFC编辑控件中显示HTMLdata [英] How to Display HTMLdata in MFC edit control

查看:58
本文介绍了如何在MFC编辑控件中显示HTMLdata的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想在我的编辑控件中显示html数据,有人可以帮我吗.
这是基于MFC对话框的应用程序.

-Abhilash

Hi,,

I want to show html data inside my edit control,can anyone help me on this.
It is MFC Dialog based application.

-Abhilash

推荐答案

请参阅我对问题的评论.但是,第二个方法是,一种非常通用的低成本解决方案可以在MFC应用程序中托管WebBrowser控件:
http://msdn.microsoft.com/en-us/library/aa752046% 28v = vs.85%29 [ ^ ].

当然,不是在用于显示纯文本的编辑控件中.

而且,如果您打算基于某些HTML数据显示一些纯文本,则该问题将毫无意义,因为编辑控件显示的文本没有区别.如果您有其他意思,则应正确解释.

—SA
Please see my comment to the question. However, on second though, one pretty general low-cost solution for you could be hosting a WebBrowser control in your MFC application:
http://msdn.microsoft.com/en-us/library/aa752046%28v=vs.85%29[^].

Of course, not in edit control, which is designed to show plain text.

And if you meant to show some plain text based on some HTML data, the question would make no sense, because there is no difference for a edit control what text to show. If you meant something else, you should explain it properly.

—SA


看看这个^ ]:它将带您进入Codeproject有关在应用程序中显示HTML内容的文章.

祝你好运.
Take a look at this link[^]: it will lead you to the Codeproject articles about showing HTML content in your apps.

Good luck.


这篇关于如何在MFC编辑控件中显示HTMLdata的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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