How can i catch the help button "?" message in a MFC dialog
Posted on 2008-11-06
After googling all day, I thought i would post it here.
I have a MFC application in which i want to integrate a compiled help file.
with few links i could do it.
however on a CDialog-derived dialog, when I add Context help i am able to see "?" in the title.
when i click on ?, the cursor will have a ? and only when i click on a control my OnHelpInfo function is called.
What i want is:- when user clicks ont the "?" button, I want to directly open the chm file.
I cant seem to find a function where i can call htmlhelp.
I have tried OnHelp() but that will only be called when F1 is pressed, but not when ? is clicked.
Can anyone tell me how can i do this?