Solved

How Can I handle the Help button in propertySheet Dialog?

Posted on 2002-04-26
9
316 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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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