[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How Can I handle the Help button in propertySheet Dialog?

Posted on 2002-04-26
9
Medium Priority
?
327 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 

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 200 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: 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.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

656 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