Discussion:
topic in win32
(too old to reply)
e***@multi.bits
16 years ago
Permalink
I would like to display a particular topic in the htmlhelp window.

HWND hwnd = HtmlHelp( GetDesktopWindow(),
"c:\\help.chm::/intro.htm>mainwin", HH_DISPLAY_TOPIC, NULL) ;

is the code to do it. However in my previous code I have;

WinHelp(hwndMain,mcwhlp,HELP_CONTEXT,IDH_XOPTLINK);

where#define IDH_XOPTLINK 3030

Can I use the numeric help topic ID somehow, or do I have to find a
.htm topic name for this topic to display? As you can see I am not
very knowledgeable in the area of helpfiles so I value advice.
Pete Lees
16 years ago
Permalink
Hi, eagle,
Post by e***@multi.bits
I would like to display a particular topic in the htmlhelp window.
HWND hwnd = HtmlHelp( GetDesktopWindow(),
"c:\\help.chm::/intro.htm>mainwin", HH_DISPLAY_TOPIC, NULL) ;
is the code to do it. However in my previous code I have;
WinHelp(hwndMain,mcwhlp,HELP_CONTEXT,IDH_XOPTLINK);
where#define IDH_XOPTLINK 3030
Can I use the numeric help topic ID somehow, or do I have to find a
..htm topic name for this topic to display?
The HTML Help equivalent of the HELP_CONTEXT command is HH_HELP_CONTEXT,
which is described here:

http://msdn.microsoft.com/en-us/library/ms670088(VS.85).aspx

So, a typical example of this command is:

HtmlHelp(GetDesktopWindow(),"c:\\help.chm>mainwin",HH_HELP_CONTEXT,3030);

To use this command, you must set up MAP and ALIAS sections in your HTML
Help project (.hhp) file. The MAP section maps topic IDs (IDH_XOPTLINK) to
context integers (3030), exactly as in WinHelp. The ALIAS section associates
the topic IDs with HTML topic files, like this:

IDH_XOPTLINK=intro.htm

For more information, see:

http://www.help-info.de/en/Help_Info_HTMLHelp/hh_context-id.htm
http://frogleg.mvps.org/helptechnologies/htmlhelp/hhtutorials.html#mapping
http://helpware.net/htmlhelp/how_to_context.htm

Pete

Loading...