
238
USING ROBOHELP HTML 9
Context-sensitive Help
Last updated 12/14/2011
Call a context-sensitive function for WebHelp Pro
1
Call the function.
The following example assumes the full path to the server and a window name are stored in a string variable called
StrPathAndWindow. The project name is required if the Auto-Merge option is set to Off. The value of this string
is
http://<servername>/robohelp/rest/search?project=<project-name>&quesn=<search-query>
for
getting the URL for a given keyword.
For getting the context-sensitive information, the URLs are
http://servername>/robohelp/rest/robowindow?wtype=ctx
&context=<id>[&area=<area_of_publishing>&type=project_type>]
or
http://servername>/robohelp/rest/robowindow?wtype=prj&window=<windowname>[&area=<area_of_p
ublishing>&type=<project_type>
]
Note:
Export the map files to the location.
Example:
To open the topic mapped to number 1:
RH_ShowHelp(GetSafeHwnd(), strPathAndWindow, HH_HELP_CONTEXT, (DWORD)1);
2
Run and test the Help call.
Note:
If using airplane Help, associate the offline Help before making calls.
Call a context-sensitive function for HTML Help
1
Call the function.
The following example assumes the CHM file and a window name are stored in a string variable called
StrPathAndWindow. The value of this string indicates the path to the CHM file, such as C:\Program
Files\MyApplication\MyHelp.chm>MyWindow.
Example:
To open the topic mapped as number 1:
RH_ShowHelp(GetSafeHwnd(), strPathAndWindow, HH_HELP_CONTEXT, (DWORD)1);
2
Run and test the Help call.
Notes:
•
If using airplane Help, associate the offline Help before making calls.
•
In WebHelp Pro projects, the Help API is supported only with RoboHelp Server or RoboEngine 3.0 or later.
Overriding the default MFC Help Handler
This topic is for Visual C++ developers who create MFC-based applications.
•
As stated in the RoboHelp_CSH.h header file, the wininet.lib and hhctrl.lib libraries must be linked into the
application. The hhctrl.lib library can be in the CSH API folder in the RoboHelp installation folder.
•
Include the RoboHelp_CSH.cpp file in your project.
Содержание 65030089 - Robohelp - PC
Страница 1: ...Using ADOBE ROBOHELP HTML 9...