Context Senstitive Help for a program ?

hemanth.balaji's Avatar, Join Date: May 2005
Go4Expert Member
How to we provide context sensitive help using win32 api. I did not understand all theat topic ids and stuff in msdn. Is there any examples on the net. I am a .hlp file to which i wanna provide context sensitive help from my project.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
I did not understand all theat topic ids and stuff in msdn
A link to MSDN or some quote from the MSDN will also do.

As far as I can remember context sensitive help can be achived by passing a parameter to the help file when calling.
hemanth.balaji's Avatar, Join Date: May 2005
Go4Expert Member
Can you just give me a example statement.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Here is what you need to do

1. Make all the Controls that you want a context sensitive Help Id property On
2. WinHelp(pWnd->m_hWnd, AfxGetApp()->m_pszHelpFilePath, HELP_CONTEXTMENU,(DWORD)(LPVOID)m_nHelpIDs);

m_nHelpIDs are the IDs of the control

Also you need to build the hlp file with the m_nHelpIDs included.

Thanks
Shabbir Bhimani