HTMLHelp: How to start with?
-
Hi I am now on stage to integrate the HTMLHelp build with HTML Workshop >> Help.chm In my project i had included the htmlhelp.h file and also the library htmlhelp.lib (both taken from HTML Help Workshop folder). Now what to do? Where to call the initialise or state that this is the html help file which has to be linked with teh project? WHere to use following API i.eHTMLHelp? HtmlHelp(); Urgent, Please help me in this respect? Sandeep Leave your mark wherever you go
-
Hi I am now on stage to integrate the HTMLHelp build with HTML Workshop >> Help.chm In my project i had included the htmlhelp.h file and also the library htmlhelp.lib (both taken from HTML Help Workshop folder). Now what to do? Where to call the initialise or state that this is the html help file which has to be linked with teh project? WHere to use following API i.eHTMLHelp? HtmlHelp(); Urgent, Please help me in this respect? Sandeep Leave your mark wherever you go
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 fileMyAppHelp.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);
wherestrHelpFile
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
- Add a "Help" button to your dialog. It's handler should execute this: