Using the WinHelp
API
Declaring and using the WinHelp API allows access to the full range of
WinHelp functions, many of which are not available in ShowHelp. For
example, using the WinHelp function you can easily specify a window type or
window name in which to present a Help topic.
To declare the WinHelp API as an external function:
1 Select Declare>Global External Functions from the menu bar of any
painter that accesses the Script view.
2 Enter the function declaration in the textbox and click OK.
This example declares the WinHelp API:
FUNCTION boolean WinHelpA(long hWndMain, &
string lpszHelp, long uCommand, &
long dwData) &
LIBRARY "USER32.DLL"
For more information about the WinHelp API, see the online Help for the
Microsoft Help Workshop or the documentation for your Help authoring tool.
For more information about declaring and using global external functions, see
the PowerScript Reference and "Using external functions" on page 378.
ShowHelp is simpler to implement than the WinHelp API. You can use the
ShowHelp PowerScript function to search for Help topics by Help context ID,
by keyword, and by accessing the Help file Contents topic (the topic defined in
the project file as the Help Contents topic). ShowHelp can also be used with
compiled HTML (.chm) files.