MFC and HTML Help
When you add help to your application, the second option is to use HTML Help. MFC applications access HTML Help in much the same way that they access WinHelp file. The application feeds context-sensitive help IDs into the help system, and the help system displays the appropriate help screen. However, HTML Help files are constructed differently than WinHelp files. HTML Help files are compiled from a number of HTML pages rather than from a single RTF file.
The following table shows the files generated by the MFC Application Wizard when you select HTML Help Format as the help system:
File | Description |
---|---|
![]() | Includes the context IDs for the entire project. |
HTML help documents | HTML files that define the help text—generally one per help topic. |
projectname.hhc | HTML Help Compiler file that contains instructions to the HTML Help compiler about how to compile the help contents. |
projectname.hhp | HTML Help Compiler file that defines directives for compiling a help project. |
![]() | Top-level HTM file. This is also where you add your own help topics. |
Let's take a look at how to add HTML Help to an MFC application.