Making Windows HtmlHelp API call
lists at mangomultimedia.com
Tue Oct 7 20:22:23 EDT 2003
On Tuesday, October 7, 2003, at 06:41 PM, Monte Goulding wrote:
>> I am finishing an app (Windows only) which will be integrated with
>> other applications that are not made in Revolution. The other
>> applications all share the same help file and ideally my Revolution
>> will as well. I was told that in order to do this I will need to make
>> an API call to HtmlHelp:
>> HtmlHelp( hRevAppWindowHandle, "HelpFile.chm", HH_HELP_CONTEXT,
>> nJumpToTopic );
>> hRevAppWindowHandle = handle to the main window in Rev app.
>> "HelpFile.chm" = path to the help file.
>> HH_HELP_CONTEXT = defined as 0x000F in the htmlhelp.h file from the
>> Microsoft Platform SDK. The HtmlHelp function does different things
>> depending on this argument. This argument tells it to launch to a
>> particular page specified by the last argument.
>> nJumpToTopic = This is the ID of the topic you want to jump to.
>> Is this something I would have to have an external for if I wanted to
>> do it in my Revolution app?
> Nah... just a two liner:
> set the hideConsoleWindows to true
> get shell("start ""e"e&"e&Helpfile.chm"e)
I forgot to explain that the help file needs to be called this way in
order for different executables to share the same help file. That is
why the HtmlHelp API must be used rather than just opening the help
file using shell.
Blue Mango Multimedia
trevor at mangomultimedia.com
More information about the Use-livecode