Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Win32 (http://www.go4expert.com/forums/win32/)
-   -   Context Senstitive Help for a program ? (http://www.go4expert.com/forums/context-senstitive-help-program-t310/)

hemanth.balaji 22May2005 12:52

Context Senstitive Help for a program ?
 
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 22May2005 18:28

Re: Context Senstitive Help for a program ?
 
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 22May2005 19:16

Re: Context Senstitive Help for a program ?
 
Can you just give me a example statement.

shabbir 23May2005 10:48

Re: Context Senstitive Help for a program ?
 
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


All times are GMT +5.5. The time now is 10:26.