views:

213

answers:

2

Hi,

I know this has been asked twice before but both had no proper replies and are dated so in case someone has found something in these days, I'm asking again!.

Any one knows any good tutorial for MSHTML or some open source project which can be read to understand how various operations can be done in MSHTML - MFC?

Thanks

+1  A: 

The one place I like to visit for MFC is Newcomer's site There are some useful tutorials and demos of various things there. Although its more of a general MFC site, so maybe you can find what you are looking for there.

Anders K.
+1  A: 

Your question makes it difficult to know exactly what you are trying to do, but the main MFC class that you need to use is CHtmlView. The MSDN has the definitive sources of information about it:

If you find those links a bit terse, then this page contains some slightly friendlier articles:

However, I would also ask whether you are definitely 100% sure that you want to use MFC?

The reason I ask is because I've worked for a number of years on an open-source project that hosts the Microsoft WebBrowser control and we saw significant performance improvements when we stripped out MFC from the project. The MFC abstractions weren't really buying us anything over the COM interfaces that are exposed by the control. Stripping out the MFC also made our code much simpler.

The project is open source, so if you want to see the code for yourself, you can get more information here. It is specifically the LibRender project that hosts the WebBrowser control. If you want to see it running, you should build the SWViewer solution.

Phil Booth