使用 IHTMLDocument 代替 IWebBrowser2

发布于 2025-01-04 09:28:56 字数 332 浏览 5 评论 0原文

我想在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

攀登最高峰 2025-01-11 09:28:56

IHTMLDocument 是一个非可视组件,因此无法执行您所要求的操作。 IWebBrowser2 是您需要的可视化组件。

IHTMLDocument is a non-visual component and so cannot do what you ask. IWebBrowser2 is the visual component that you need.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文