New
#1
Context sensitive help is not working
Hi,
I have recently migrated to Windows 7 and found that help file was not supported here.
I have an application where on F1 press, i used to display MyApp.hlp as the help file. After some investigation, i realized and convertedthis MyApp.hlp to MyApp.chm format. I also used ::HtmlHelp() to call this help file. Here is the code snippet that i used to display MyApp.chm:
::HtmlHelp(0, m_pszHelpFilePath, HH_DISPLAY_TOC, NULL) ;
But, here i found that i am not able to display help according to my context.
In many places in my application i had set the Help IDs of different dialogs like:
pDlg->SetHelpID(IDD_BLAH_BLAH_BLAH_1)
pDlg->SetHelpID(IDD_BLAH_BLAH_BLAH_2)
pDlg->SetHelpID(IDD_BLAH_BLAH_BLAH_3)
Now i am not sure how to use these HelpIDs for context sensitive help.
I have tried passing "HH_HELP_CONTEXT", "HH_TP_HELP_CONTEXTMENU" but couldnt seem to get this right.
Can anyone please help me?