Solved

How Can I handle the Help button in propertySheet Dialog?

Posted on 2002-04-26
9
322 Views
Last Modified: 2013-11-20
I have created peopertysheet dialog with Ok, Cancel, Help button I need to handle the help button ,How can I do That?
0
Comment
Question by:AHD
9 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6972019
Open the CLASS WIZARD and select the ID for the HELP button.  Add a handler for it.
0
 

Author Comment

by:AHD
ID: 6972032
There is no ID for the HELP button, this is button created by MFC framework!!!
0
 
LVL 32

Expert Comment

by:jhance
ID: 6972044
Check the CLASS that you have selected in the Class Wizard.  I needs to be the class derived from CPropertySheet.  Whatever you named it, maybe CMyPropertySheet or something similar.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:AHD
ID: 6972065
I said before no ID for the HELP button.
0
 
LVL 32

Expert Comment

by:jhance
ID: 6972101
Sorry, I guess I Can't help.
0
 
LVL 1

Expert Comment

by:Mazen
ID: 6972255
Hi,
I don't think i've got exactly what you need, but try this:
right click on the help button and choose class wizard. Add a function to the ID that the will be selected automaticly by the class wizard and then you can edit the code for this function(it will be the ID for the help button).
Good luck
0
 
LVL 4

Accepted Solution

by:
mblat earned 50 total points
ID: 6972385
ID for help button is ID_HELP.

So you need to add thre following line to message map:

ON_COMMAND(ID_HELP, OnHelp)

and

afx_msg void OnHelp();

to AFX_MSG section (it will look like this

     //{{AFX_MSG(Mypage)
     afx_msg void OnHelp();
     //}}AFX_MSG


OnHelp will get control after you press Help.


Hope it helps




0
 

Expert Comment

by:jerinjohn
ID: 6976327
hi,

  Open the CLASS WIZARD for application class and select the winHelp ID for the HELP button.  Add a handler for it.

Then if u click on the help button on a page then control will  come to here

Hope it will helps
0
 
LVL 4

Expert Comment

by:AmitAgarwal
ID: 6976541
Hi Believe override the OnHelpInfo function from the class wizard that will solve your problem.
message is WM_HELPINFO
0

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange date stored 22 177
not able to insert into temp table 68 174
Line meaning 9 91
Problem to open Excel file 15 227
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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