The source code for CHHCtrl and CItsFile is provided as is. No warranty of any form is implied. You may use and modify the code as you see fit, including redistributing any products derived from the code. You can download the code, additional documentation (chhctrl.htm) and a sample Visual Studio 6 project by clicking here.

What is CHHCtrl?

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. With CHHCtrl, you get access to all IWebBrowser2 methods, along with the following additional support for HTML Help CHM files:

Like the HtmlHelp API, CHHCtrl lets you specify a toolbar with the following differences:

ScreenShots

The following screen shots are taken from the sample project included in the source code download (see top of this page):

Screen shot of help embedded in a dialog

The above screen shot shows help embedded in a dialog that will change as the user's mouse hovers over a control, or a user activates a control by clicking on it.

Screen shot of embedded help system

The above screen shot shows help embedded in a dialog with a toolbar (part of CHHCtrl). In this case, the help does not change unless the user clicks a link.


Home