Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

How Can I handle the Help button in propertySheet Dialog?

I have created peopertysheet dialog with Ok, Cancel, Help button I need to handle the help button ,How can I do That?
0
AHD
Asked:
AHD
1 Solution
 
jhanceCommented:
Open the CLASS WIZARD and select the ID for the HELP button.  Add a handler for it.
0
 
AHDAuthor Commented:
There is no ID for the HELP button, this is button created by MFC framework!!!
0
 
jhanceCommented:
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
AHDAuthor Commented:
I said before no ID for the HELP button.
0
 
jhanceCommented:
Sorry, I guess I Can't help.
0
 
MazenCommented:
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
 
mblatCommented:
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
 
jerinjohnCommented:
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
 
AmitAgarwalCommented:
Hi Believe override the OnHelpInfo function from the class wizard that will solve your problem.
message is WM_HELPINFO
0
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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