Click here to Skip to main content
13,043,898 members (51,709 online)
Click here to Skip to main content
Add your own
alternative version


28 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

    GeneralProblem when using Visual Studio 2005 Pin
    Holger Farr19-May-06 1:34
    memberHolger Farr19-May-06 1:34 
    GeneralRe: Problem when using Visual Studio 2005 Pin
    kishoresoftware18-Apr-08 8:57
    memberkishoresoftware18-Apr-08 8:57 
    GeneralRe: Problem when using Visual Studio 2005 Pin
    Holger Farr20-Apr-08 23:52
    memberHolger Farr20-Apr-08 23:52 
    GeneralRe: Problem when using Visual Studio 2005 Pin
    feelapi24-Feb-10 18:44
    memberfeelapi24-Feb-10 18:44 
    GeneralDisabling File drop in this type of dialog Pin
    Wolfram Steinke30-Jan-06 8:59
    memberWolfram Steinke30-Jan-06 8:59 
    QuestionHTMLHelp from another PC ? Pin
    SaviPpp5-Oct-05 1:01
    memberSaviPpp5-Oct-05 1:01 
    AnswerRe: HTMLHelp from another PC ? Pin
    snowlin30-Sep-08 19:49
    membersnowlin30-Sep-08 19:49 
    This is a million year old question that doesn't seem to have been answered. In case you're someone like me wandering around the articles and would like to know the solution for this poster issues, perhaps I can help.

    If what he is describing is this: a .chm file that has been opened on another computer and it was copied over from a LAN or even sent to you via email (or some other method) does not display content. It actually may show a web type error like "this page cannot be displayed..yada yada".

    Quoted from Dr. eXplain [^]
    A security update for Windows XP® may block access to CHM files
    Windows XP® security update blocks active content in CHM files to protect your system security. Additional information is available here.

    Solution: Run Windows Explorer, right-click on the CHM file, and select Properties from the popup menu. Click on the Unblock button immediately below the Advanced button on the General page. Click Apply to show the content. Once the CHM file has been unblocked, the Unblock button disappears.

    The CHM file is in the restricted Internet zone
    When a CHM file that you are trying to access is stored remotely, e.g. on the network drive or on a remote server, you may also get in trouble. If the associated security zone is restricted, then CHM files won't be displayed as well.

    Solution: Please go to Dr. eXplain's website[^] for details

    I've listed the two most common reasons for the error but the website explains several more and their solutions.

    I hope this helps someone.

    I'm a Techwriter Monkey -- handy, just less useful than the Bathroom Monkey.

    QuestionHow to get the default topic? Pin
    samson_duan31-Jul-05 17:02
    membersamson_duan31-Jul-05 17:02 
    Questionwhat a crap? Pin
    buzz0073-May-05 6:51
    sussbuzz0073-May-05 6:51 
    AnswerRe: what a crap? Pin
    Ravi Bhavnani3-May-05 7:51
    memberRavi Bhavnani3-May-05 7:51 
    GeneralDoes not work for Windows 98 Pin
    ladydi991-May-05 23:46
    memberladydi991-May-05 23:46 
    GeneralRe: Does not work for Windows 98 Pin
    Ralph Walden3-May-05 9:07
    memberRalph Walden3-May-05 9:07 
    GeneralRe: Does not work for Windows 98 Pin
    ladydi993-May-05 19:43
    memberladydi993-May-05 19:43 
    GeneralRe: Does not work for Windows 98 Pin
    Anonymous17-May-05 21:19
    sussAnonymous17-May-05 21:19 
    GeneralRe: Does not work for Windows 98 Pin
    Anonymous23-May-05 20:59
    sussAnonymous23-May-05 20:59 
    Questionhow do create html control using xml file Pin
    Anonymous30-Jun-04 0:04
    sussAnonymous30-Jun-04 0:04 
    GeneralUrgent !!! Please Help ! Pin
    atul arora31-Mar-04 22:04
    memberatul arora31-Mar-04 22:04 
    GeneralRe: Urgent !!! Please Help ! Pin
    snowlin30-Sep-08 19:58
    membersnowlin30-Sep-08 19:58 
    GeneralHelp needed urgent!!!!!!!!! Pin
    azghar6-Oct-03 21:11
    memberazghar6-Oct-03 21:11 
    GeneralRe: Help needed urgent!!!!!!!!! Pin
    Ralph Walden8-Oct-03 9:59
    memberRalph Walden8-Oct-03 9:59 
    GeneralRe: Help needed urgent!!!!!!!!! Pin
    lvershum10-Dec-03 13:26
    memberlvershum10-Dec-03 13:26 
    GeneralRe: Help needed urgent!!!!!!!!! Pin
    Ralph Walden10-Dec-03 15:25
    memberRalph Walden10-Dec-03 15:25 
    GeneralRe: Help needed urgent!!!!!!!!! Pin
    ssbktSean14-Jan-05 7:52
    memberssbktSean14-Jan-05 7:52 
    Question.NET version ? Pin
    georges21-Jan-03 2:25
    sussgeorges21-Jan-03 2:25 
    QuestionHow to highlight some strings? Pin
    Andreas.Stuebinger28-Oct-02 0:11
    memberAndreas.Stuebinger28-Oct-02 0:11 
    AnswerRe: How to highlight some strings? Pin
    __Stephane Rodriguez__28-Oct-02 0:37
    member__Stephane Rodriguez__28-Oct-02 0:37 
    GeneralRe: How to highlight some strings? Pin
    Andreas Stuebinger28-Oct-02 3:56
    sussAndreas Stuebinger28-Oct-02 3:56 
    Questionhow to show & hide html window?? Pin
    yongil lee2-Oct-02 3:50
    sussyongil lee2-Oct-02 3:50 
    AnswerRe: how to show & hide html window?? Pin
    Ralph Walden28-Oct-02 8:02
    memberRalph Walden28-Oct-02 8:02 
    Questionhow to change char to BSTR string? Pin
    sunjm16-Mar-01 18:27
    membersunjm16-Mar-01 18:27 
    AnswerRe: how to change char to BSTR string? Pin
    Anonymous20-May-01 16:22
    memberAnonymous20-May-01 16:22 

    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 | Terms of Use | Mobile
    Web02 | 2.8.170713.1 | Last Updated 2 Feb 2000
    Article Copyright 2000 by Ralph Walden
    Everything else Copyright © CodeProject, 1999-2017
    Layout: fixed | fluid