• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

context sensitive help for controls

I'm trying to decipher the documentation about adding context sensitive help to an SDI project that has a bunch of dialog windows.

I understand that the help file is an rtf file and that by inserting footnotes with a # character you set the topic id and when that is selected in help you jump to that information.

I've selected Help ID in the properties window for the controls, inserted the footnote w/ the appropriate help id.  
(It looks like "# HIDC_RADIO1") But when I try to get the help to come up I keep getting the message "The Topic does not exist. Contact your vender for an updated help file."

Can anyone help or point me to some good documentation on doing this in DevStudio 5.0 for Windows NT SVP 3.0?

I'd really appreciate it.
  • 2
1 Solution
A very good book is "Inside Visual C++ Version 5" by David J. Kruglinski, there is a large section about WinHelp.
For your control you have to call AfxGetApp()->WinHelp(HID_TOPIC1);

Make sure that your project-help-file .hpj includes a map-section:

if that all doesn't work then make a new test-project with mfc-wizard and set the option 'context-sensitive help', and create the new project with the wizard. If you look in the folders of your new project you will see, that there is included a hlp-folder and now look inside the program what happens, when for example F1-key is pressed or something else.

Hope this helps a little bit.
winkleAuthor Commented:
Thanks Atari,

I managed to determine what object the mouse click was occuring over. Once I did that the help worked correctly.
Nice that I could help you,
for some other answers to questions you don't get points at all, and sometimes you have to fight for your points, sending comments and comments.

That all is sometimes really hard, so I didn't answer questions a lot, only if I have time enough to do so.

I think, the people think, that I haven't MFC experience, because my code name is atari. But look, if you have time, on our companys home page http://www.socon.com and under software you will find the projects that we have still implemented.

Thanks for your points,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now