All the content of an HTML Help file is just an HTML compilation and every page inside of the help file can be directly accessed with a browser (well IE really). However, if you do this the entire help file will load into memory so there's little benefit in doing this unless you need to display the content outside of HTML Help.
To find out how to access a topic in the help file access a topic and right click on the window and select Properties. You'll find the URL to the document. Cut and Paste that link into IE and you can display just the HTML for that topic outside of the HTML Viewer. You cna do the same with the Web Browser control and Navigate to this url.
The URL looks something like this:
mk:@MSITStore:d:\programs\vfp70\foxhelp.chm::/html/wndcommand_window.htm
Another thing that you can do is use an external content management handler to create your help for you. I use HTML Help Builder (
http://www.west-wind.com/wwHelp/) for this - it stores the content in tables and dynamically can render the HTML from each topic. The whole thing is exposed via COM and basically provides the ability to plug it into any application. So I can build a CHM file, or I can build plain HTML pages (which are much easier to link) or I can use the database itself with the COM object front end to dynamically build my HTML to display.
+++ Rick ---
>Hello,
>
>I would like to create a window in my application to display HTML pages extracted from a CHM file. Where could I find explanations how to declare the HtmlHelp() function from the Hhctrl.ocx and how to use it in FoxPro. I found things on the site of Microsoft (
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconHH1Start.asp) but I did not succeed in implementing the function.
>It's there another possibility of extracting the data from a CHM file and displays it in a window like Internet Explore inside of an application.
>
>Regards
>
>david