Skip to main content
Participant
April 16, 2007
Question

HtmlHelp doesn't display my chm file for HH_DISPLAY_TOC

  • April 16, 2007
  • 1 reply
  • 935 views
Hi there,

I have an MFC application to display a CHM help file generated from
RoboHelp. I override WinHelp to map HELP_* macros to HH_* macros such as
HELP_CONTENTS to HH_DISPLAY_TOC and HELP_CONTEXT to HH_HELP_CONTEXT, and call
htmlhelp API to open the CHM file. At runtime, HH_HELP_CONTEXT works because
pressing F1 key does bring up the CHM file. However, selecting 'Contents'
menu item in 'Help' menu of main menubar has nothing happened. The CHM file
doesn't appear. I noticed that HH_DISPLAY_TOC definition in htmlhelp.h has
the following line:
"#define HH_DISPLAY_TOC 0x0001 // not currently implemented"
It comments as not currently implemented. However, I didn't find any clue in
MSDN to indicate it not currently implemented.
Does anyone have any clue on the problem and any workaround?

Thank you
This topic has been closed for replies.

1 reply

Known Participant
April 30, 2007
I should preface this by saying I am not a programmer ;-) , but I had this exact issue with our software program. We could not get the Help to be called from the menu. We create the software gui using Delphi 2005 and we use HTMLHelpViewer2005 to get Delphi to recognize the .CHM file.

This is the code that our programmer ended up using:

htmlhelp( MenuMainForm.Handle, 'path\ourhelp.chm', HH_HELP_FINDER, 0);

path\ourhelp.chm would be the location of your .CHM file :-)

I hope that helps you in some way, have faith because it can be done ...

Thanks,

~Jessica