简体   繁体   English

使用IHTMLDocument代替IWebBrowser2

[英]Using IHTMLDocument instead of IWebBrowser2

I want to display a simple web page in my Win32 application. 我想在我的Win32应用程序中显示一个简单的网页。

I have read this question 我读过这个问题

IWebBrowser2: how to force links to open in new window? iWebBrowser2:如何强制链接在新窗口中打开?

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. 是否有一个简单的示例显示如何使用IHTMLDocument而不是IWebBrowser2在Win32应用程序中呈现HTML文档。

IHTMLDocument is a non-visual component and so cannot do what you ask. IHTMLDocument是非可视组件,因此无法执行您要求的操作。 IWebBrowser2 is the visual component that you need. IWebBrowser2是您所需的可视组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM