[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 331
  • 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

 
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

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