Click here to Skip to main content
13,802,390 members
Click here to Skip to main content
Add your own
alternative version


29 bookmarked
Posted 1 Feb 2000

Embedding an HTML Help window into a dialog

, 1 Feb 2000
Rate this:
Please Sign up or sign in to vote.
Placing an embedded help window inside of a dialog, property sheet, or window.
  • Download demo project - 48 Kb
  • Sample Image - html_help.jpg

    <!-- Article Starts --> CHHCtrl is an MFC class designed for placing an embedded help window inside of a dialog, property sheet, or window. The CHHCtrl class hosts shdocvw directly rather then using the HtmlHelp API. This bypasses the bugs in embedded help introduced with the version of HTML Help released with Visual Studio 6. It also gives you access to all IWebBrowser methods which means you can change HTML files on the fly -- for example, showing the actual key associations currently in effect for a program rather then the default set it ships with.

    This project also includes a CItsFile class that you can use for reading any file from a CHM (or ITS) file. It is used by the CHHCtrl class for convertting mapped ids into URLs, but you can use it to read any kind of data that is stored in the CHM file.

    Because of additions to MFC that CHHCtrl relies on, this project requires Visual Studio 6. You may be able to port it to an earlier version of Visual Studio, but expect a fair amount of work.

    The zip file includes additional information (chhctrl.htm) covering how to add CHHCtrl into your project, and documents other functionality that CHHCtrl provides. <p>


    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    About the Author

    Ralph Walden
    Web Developer
    United States United States
    No Biography provided

    You may also be interested in...


    Comments and Discussions

    Questionwhat a crap? Pin
    buzz0073-May-05 7:51
    memberbuzz0073-May-05 7:51 
    AnswerRe: what a crap? Pin
    Ravi Bhavnani3-May-05 8:51
    professionalRavi Bhavnani3-May-05 8:51 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
    Web06 | 2.8.181215.1 | Last Updated 2 Feb 2000
    Article Copyright 2000 by Ralph Walden
    Everything else Copyright © CodeProject, 1999-2018
    Layout: fixed | fluid