HTML Help MFC Sample

This sample demonstrates using HTML Help with an MFC application. Developed with the AppWizard in VC++ 6.0, help support was not selected within the wizard due to its sole dependence on WinHelp techniques. The projects Include directories were modified to include htmlhelp.h in the HTML Help Workshop's Include folder, and htmlhelp.h has been added as an include file in MainFrm.cpp and Techniques.cpp. Linking to the Workshop's htmlhelp.lib file was included as well.

The main form, or document window, contains a menu that illustrates the following techniques:

A dialog illustrating the following techniques is available by clicking the View | Techniques menu item on the main form:

It's important to note that the What's This help technique selects its own context ID's, which is extracted in Techniques.cpp as HELPINFO* pHelpInfo->dwContextId. Once a control's Help ID box is checked on its Properties dialog, run the application and subsequently run What's This help against the control to view a message containing the assigned ID for the control. A Control not having the Help ID boxed checked on its Properties dialog have a dwContextId of 0.

©2000 Delmar Computing Services, All Rights Reserved
http://mvps.org/htmlhelpcenter