在我的程序中打开HTML文档 [英] Open HTML document inside my program

查看:68
本文介绍了在我的程序中打开HTML文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将使用Visual C ++ 6.0制作的旧项目转换为Visual Studio 2010,除了一件事,一切都很好。在应用程序中,您可以查看以HTML格式制作的帮助文档,以便于编辑,还可以获得所有html功能,例如单击名称以打开链接等等。在旧的6.0中,html文件的打开方式与使用AfxGetApp() - > OpenDocumentFile(path)的任何其他文档一样;命令,但这对Visual Studio 2010不起作用。我不想在它自己的窗口中打开Internet Explorer,而是应该在我的应用程序中打开文件,这里只是另一个窗口。在Visual 6.0中它打开了一个非常简化的浏览器,只有几个按钮,用于后退,前进,回家...



也许没有一个好方法可以做到这一点还是?

I am converting an old project made with Visual C++ 6.0 to Visual Studio 2010 and everything is fine except one thing. In the application you can view help documents that are made in HTML so they are easy to edit and also you get all html features like click on names to open a link for that and so on. In the old 6.0 the html files were opened just like any other documents with the AfxGetApp()->OpenDocumentFile( path ); command, but this doesn't work for Visual Studio 2010. I don't want to just open internet explorer in it's own window, but instead the files should be opened inside my application as just another window here. In Visual 6.0 it opened a very simplified browser with just a few buttons for back,forward,home...

Maybe there isn't a good way to do this anymore?

推荐答案

看看:

http://msdn.microsoft.com/en-us/library/vstudio/bcbhy332(v=vs.100).aspx [<一个href =http://msdn.microsoft.com/en-us/library/vstudio/bcbhy332(v=vs.100).aspx\"target =_ blanktitle =New Window> ^ ]





http:// archive .msdn.microsoft.com / vcsamplesmfc [ ^ ]



特别是MFCIE样本。
Look at:
http://msdn.microsoft.com/en-us/library/vstudio/bcbhy332(v=vs.100).aspx[^]

and
http://archive.msdn.microsoft.com/vcsamplesmfc[^]

Particularly MFCIE sample.


这篇关于在我的程序中打开HTML文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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