3637. Display a Web Page in a Plain C Win32 Ap
- There are numerous examples that demonstrate how to embed Internet Explorer in your own window. But these examples typically use Microsoft Foundation Classes (MFC), .NET, C#, or at least the Windows Template Library (WTL) because those frameworks have pre-fabricated "wrappers" to easily give you an "HTML control" to embed in your window. If you're trying to use plain C, without MFC, WTL, .NET, C#, or even any C++ code at all, then there is a dirth of examples and information how to deal with OLE/COM objects such as IE's IWebBrowser2.
许多例子演示了如何在窗口中嵌入Internet Explorer ,但这些例子大部分使用Microsoft Foundation Classes (MFC), .NET, C#,或 Windows Template Library (WTL) ,因为这些框架带有预先的“封装器”,可以让你方便地在窗口中插入HTML控件。如何你试图使用普通的C,不使用MFC, WTL, .NET, C#,和任何的C++代码,这就是这样的一个例子,演示了如何处理IE的 IWebBrowser2这样的OLE/COM 对象。
来源: http://www.codeguru.com/ieprogram/cwebpage.html |