Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

context sensitive help for controls

Posted on 1998-07-21
3
Medium Priority
?
272 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
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
atari earned 400 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Screencast - Getting to Know the Pipeline
Suggested Courses

885 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