Help topics are usually linked to different elements (dialogs, views) of your app. Here's what I do (which is slightly different from MS' process):* For every dialog (eg: CMyDialog), define a unique constant (eg: Help_MyDialog). Keep these constants in the file MyAppHelp.h. Include this file as a map in your HtmlHelp project. Ids in the file will map to your .chm's topic ids.
Add a "Help" button to your dialog. It's handler should execute this: HWND hWndHelp = HtmlHelp (NULL, strHelpFile, HH_HELP_CONTEXT, Help_MyDialog); where strHelpFile is the full path to your app's .chm file.
Add a handler for the WM_HELPINFO message. This message is sent whent the user clicks the F1 key. In its handler, just call your Help button handler. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com