In the Help Context ID management section of Project settings dialog you can configure various options related to context sensitive help of exported CHM file.
To open the project settings, use one of the ways described below:
Check this option to create an external map file in the same directory with the CHM file.
The content of map file depends on its extension:
".h" — C++ code will be generated;
".cs" — C# code will be generated;
".vb" — VB code will be generated;
".inc" — Object Pascal (Delphi) code will be generated.
Then, add this file to your software's source files and pass into HTML Help API functions in your source code the constants from the generated file instead of numeric Help Context ID values.