Step 1: Prepare a .h file
You should prepare a header file (.h file) for your context-sensitive help.
This .h file contains the following define statements:
#define IDH_FILE_NEW 1 #define IDH_FILE_OPEN 2 #define IDH_FILE_SAVE 3
IDH_FILE_NEW, IDH_FILE_OPEN, IDH_FILE_SAVE are help context IDs of interface elements.
You can use any text editor to edit this .h file.
Tip: If you want to connect Context Sensitive HTML Help to Visual C++ programs, you can also use the resource.h of your project to replace this header file.
Step 2: Import this .h file
Import this .h file to your Fly Help project.
- On the toolbar, click to display the Help Context ID Mapper window.
-Or-
From the View menu, select Help Context ID Mapper.
- Click Import .h File.
Tip: Click Reload .h File button to refresh this .h file if it is modified by other editors.
Step 3: Assign topic files to Help Context IDs
To assign a topic or a .html file to a Help Context ID, simply drag an entry from the visual TOC Designer (in Contents window, see Figure 1) or the visual Index Designer (in Index window, see Figure 2) or the Files List (in Files window, see Figure 3) and drop it onto a corresponding Help Context ID.
Figure 1. A TOC entry being dropped onto a Help Context ID
Figure 2. An index entry being dropped onto a Help Context ID
Figure 3. A file list entry being dropped onto a Help Context ID

Step 4: Compile to CHM
Now you can execute the Compile to CHM command to generate the final HTML Help file (.CHM file). If you execute the command on an unnamed project, you will be asked to name it first.
- From the Tools menu, select Compile to CHM.
-Or-
On the toolbar, click Compile to CHM.