Discussion:
Context Help in HTML Help standardt
(too old to reply)
Tumor Mozgowicz
2004-05-26 15:35:07 UTC
Permalink
Hello,

In Winhelp system one can control the behavior of context-help on both
sides: (i) inside the help system with aid of MAP section in help project
file (hpj); (ii) inside an application using the WinHelp() function which
can invoke the help file on a specific page, depending on the parameter. And
that's it.

Now I trying to understand the HTML Help standard (*.chm files vs. *.hlp)
and my questions are like follows:

1. What is the way to mark some pages as those using by the application -
same thing as in Winhelp system item (i)

2. What is the name of the function (and the way of using) able to open
*.chm file on a specific page - same as in Winhelp system the WinHelp()
function like shown in item (ii)

--
Best regards,
Tumor Mozgowicz;
CAUTION: To reply directly reverse my name in the e-mail address.
"Of all the things I've lost, I miss my mind the most!" - Ozzy Osbourne.

P.S FUT set to: comp.os.ms-windows.programmer.winhelp
Pete Lees [MVP]
2004-05-26 18:31:53 UTC
Permalink
Tumor,
Post by Tumor Mozgowicz
1. What is the way to mark some pages as those using by the application
- same thing as in Winhelp system item (i)
You'll need to set up MAP and [ALIAS] sections in your project (.hhp) file,
as described here:

http://www.mvps.org/htmlhelpcenter/htmlhelp/hhtutorials.html#mapping
http://helpware.net/htmlhelp/how_to_context.htm
Post by Tumor Mozgowicz
2. What is the name of the function (and the way of using) able to open
*.chm file on a specific page - same as in Winhelp system the WinHelp()
function like shown in item (ii)
The HTML Help API provides several commands with which you can do this, but
you'll probably want to look in particular at the HH_HELP_CONTEXT and
HH_DISPLAY_TOPIC commands. See this page for more information:

http://msdn.microsoft.com/library/en-us/htmlhelp/html/vsconOvabouthtmlhelpcommands.asp

And this page should also be useful:

http://www.mshelpwiki.com/index.php?page=HTMLHelpArticles

--
Pete (Microsoft Help MVP)
Jugoslav Dujic
2004-05-27 12:15:15 UTC
Permalink
Tumor Mozgowicz wrote:
| Hello,
|
| In Winhelp system one can control the behavior of context-help on both
| sides: (i) inside the help system with aid of MAP section in help project
| file (hpj); (ii) inside an application using the WinHelp() function which
| can invoke the help file on a specific page, depending on the parameter. And
| that's it.
|
| Now I trying to understand the HTML Help standard (*.chm files vs. *.hlp)
| and my questions are like follows:
|
| 1. What is the way to mark some pages as those using by the application -
| same thing as in Winhelp system item (i)

Similar as with WinHelp -- add a MAP .h file like:

#define IDH_HELPPAGE 1000

(due to a documented bug in HH workshop, make sure that there's EXACTLY
one space between #define and IDH_*)

and an ALIAS .h file containing:

IDH_HELPPAGE=XContextHelp.htm

Click on "HtmlHelp API Information" button and add them (they will
end up in [MAP] and [ALIAS] sections of .hhp file)

| 2. What is the name of the function (and the way of using) able to open
| *.chm file on a specific page - same as in Winhelp system the WinHelp()
| function like shown in item (ii)

See:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;241218

and also, HH_HELP_CONTEXT argument.
--
Jugoslav
___________
www.geocities.com/jdujic

Please reply to the newsgroup.
You can find my real e-mail on my home page above.
Tumor Mozgowicz
2004-05-27 14:40:46 UTC
Permalink
Post by Jugoslav Dujic
Post by Tumor Mozgowicz
1. What is the way to mark some pages as those using by the
application - same thing as in Winhelp system item (i)
#define IDH_HELPPAGE 1000
(due to a documented bug in HH workshop, make sure that there's
EXACTLY one space between #define and IDH_*)
IDH_HELPPAGE=XContextHelp.htm
Click on "HtmlHelp API Information" button and add them (they will
end up in [MAP] and [ALIAS] sections of .hhp file)
Post by Tumor Mozgowicz
2. What is the name of the function (and the way of using) able to
open *.chm file on a specific page - same as in Winhelp system the
WinHelp() function like shown in item (ii)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;241218
That's it :-). Thx a lot,


--
Best regards,
Tumor Mozgowicz;
CAUTION: To reply directly reverse my name in the e-mail address.
"Of all the things I've lost, I miss my mind the most!" - Ozzy Osbourne.
Loading...