Description: This is a Win32 C application (ie, no MFC, WTL, nor even any C++-- just plain C) that demonstrates
how to embed a browser "control" (actually, an OLE object) in your own window (in order to display a
web page, or an HTML file on disk).
This example opens two windows, each containing a browser object. The first window displays an HTML
string in memory. The second window displays Microsoft s web site. We also disable the pop-up context
menu, and resize the browser to fill our window.
This is very loosely based upon a C++ example written by Chris Becke. I used that to learn the minimum
of what I needed to know about hosting the browser object. Then I wrote this example from the ground up
in C.
This requires IE 5.0 (or better)-- due to the IDocHostUIHandler interface, or a browser that supports
the same level of OLE in-place activation.
To Search:
- [cwebpage_src] - using pure C wrote display HTML document
- [WTLIEHost] - WTL for MFC Programmers Chapter 6 of rou
- [OCXHttpView] - ocx control windows of a simple procedur
- [eMule-VeryCD-src] - verycd emule source code, the use of vc+
- [ie] - Development environment c++ Builder 6.0.
- [WebBrowse] - A compact browser software source code,
- [Browse] - mobile browser component on the use, for
File list (Check if you may need any files):
events\Events.c
......\Events.dsp
......\Events.dsw
events
simple\release
......\.......\Simple.exe
......\Simple.c
......\Simple.dsp
......\Simple.dsw
simple
dll\cwebpage.h
...\dll.c
...\dll.def
...\DLL.dsp
...\DLL.dsw
...\example
...\.......\example.c
...\.......\Example.dsp
...\.......\Example.dsw
...\htmlevents
...\..........\HtmlEvents.c
...\..........\HtmlEvents.dsp
...\..........\HtmlEvents.dsw
...\release
dll