Solved

context sensitive help for controls

Posted on 1998-07-21
3
270 Views
Last Modified: 2013-11-20
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.
0
Comment
Question by:winkle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
atari earned 100 total points
ID: 1319519
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:
[map]
HID_TOPIC1 101

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.
Bye,
atari
0
 

Author Comment

by:winkle
ID: 1319520
Thanks Atari,

I managed to determine what object the mouse click was occuring over. Once I did that the help worked correctly.
0
 
LVL 1

Expert Comment

by:atari
ID: 1319521
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,
bye
atari
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question