1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Context Senstitive Help for a program ?

Discussion in 'Win32' started by hemanth.balaji, May 22, 2005.

  1. hemanth.balaji

    hemanth.balaji New 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.
     
  2. shabbir

    shabbir Administrator Staff Member

    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.
     
  3. hemanth.balaji

    hemanth.balaji New Member

    Can you just give me a example statement.
     
  4. shabbir

    shabbir Administrator Staff Member

    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
     

Share This Page