Solved

context sensitive help for controls

Posted on 1998-07-21
3
269 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 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
if loop in java 3 139
maven archtype selection in eclipse 1 57
only14 challenge 19 75
Updating statistics with error notification email in SQL server 4 94
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

786 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