Displaying the Help Viewer

Home

To make the help viewer appear when the user clicks a command button or menu selection in your application:

  1. Follow the instructions in Including HTML Help Support Files in an Application.

  2. In ClassWizard, add a handler for the BN_CLICKED message (for a button) or a handler for the COMMAND message (for a menu option) to the class that contains the menu option or button. The handler should implement a call into your .chm (compiled HTML Help file). For example:
    HtmlHelp(NULL, "My_chm.chm::/A_topic.htm", HH_DISPLAY_TOPIC, 0);
    

For more information, use the online help in HTML Help Workshop and see the following topics:

Back to Help Topics (HTML Help)