Example Ex19c: HTML Help
Ex19c is also based on example Ex18d. It is an MDI application that includes two views to a single document and uses HTML Help. The example was created using the MFC Application Wizard with HTML Help Format selected on the Advanced Features page.If you look in the file

Visual Studio .NET adds help context IDs when you add new menu commands to the program and recompile it. Near the top of the

#define HID_WINDOW_NEWSTRINGWINDOW 0x10082
#define HID_WINDOW_NEWHEXWINDOW 0x10083
In addition to the standard menu command help created by the MFC Application Wizard, Ex19c has a new help topic for the New Hex Window command. The help context ID was generously included by Visual Studio .NET when the command was added. Now it needs to be tied to the


hid_window_newhexwindow = hid_window_newhexwindow
Finally, the

[files]
afx_hidd_color
afx_hidd_fileopen
afx_hidd_filesave![]()
hid_window_newstringwindow
hid_window_newhexwindow
hid_window_split![]()
Once you relate the HTML files to the help command IDs, there's nothing else you need to do to get the help topics working. The rest of the built-in MFC help functionality will take care of the details for you. To see for yourself, run the Ex19c example, select various menu commands and push F1. You'll see the correct help screens appear after pressing F1.