使用 IHTMLDocument 代替 IWebBrowser2
我想在我的 Win32 应用程序中显示一个简单的网页。
我读过这个问题
IWebBrowser2: how to force links to在新窗口中打开?
我想按照问题的答复中的说明进行操作,但没有找到代码示例。
是否有一个简单的示例演示如何使用 IHTMLDocument 而不是 IWebBrowser2 在 Win32 应用程序中呈现 HTML 文档。
I want to display a simple web page in my Win32 application.
I have read this question
IWebBrowser2: how to force links to open in new window?
I want to do exactly stated in the reply of the question, but havn't found a code example.
Is there a simple example which shows how to use IHTMLDocument instead of IWebBrowser2 to render HTML documents inside a Win32 application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IHTMLDocument 是一个非可视组件,因此无法执行您所要求的操作。 IWebBrowser2 是您需要的可视化组件。
IHTMLDocument is a non-visual component and so cannot do what you ask. IWebBrowser2 is the visual component that you need.