Context sensitive help is not working


  1. Posts : 2
    Windows 7 64 bit
       #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?
      My Computer


  2. Posts : 3,612
    Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)
       #2

    on the start menu index you have HELP AND SUPPORT hope this helps
    Attached Thumbnails Attached Thumbnails Context sensitive help is not working-brys-snap-17-february-2011-10h43m08s.png  
      My Computer


  3. Posts : 2
    Windows 7 64 bit
    Thread Starter
       #3

    Hi brianzion,

    Thanks for the reply.
    But this doesnt seem to relate to my query. I guess i did not make myself adequately clear in my post.

    I am building an MFC application (i started building it in Windows XP). In this application, i had my own help file. I intended that when i press Help, this help file shoud get displayed. It was happening in XP but when i migrated to Win 7 and press F1, i used to get an error message saying that "Failed to launch Help".
    Then i learnt that Windows 7 doesnt recognize .hlp as the help file. The other possibilities are .chm, .txt etc. I then converted my help file format from MyApp.hlp to MyApp.chm.

    Then i made some changes in my code to launch my help file using HtmlHelp() instead of usual WinHelp(). This also worked for me.
    The only problem that i am getting is that say if i am in my first dialog with help ID IDD_BLAH_BLAH_BLAH_1, then on pressing F1, i should directly open the help related to this particular ID (rather that opening the entire help file). In other words, i wanted the help file to be Context sensitive.
      My Computer


  4. Posts : 1
    Windows 7 Ultimate 6x64
       #4

    Hi Sudipto,

    We have the same problem with a .chm file for our application. Normal entry to help file works but context sensitive attempts (F1) fails. Do you ever manage to find a resolution?

    Cheers
      My Computer


  5. Posts : 1
    Windows 7 64 bit Pro
       #5

    go here and install the update:

    Microsoft Support: I cannot open Help files that require the Windows Help (WinHlp32.exe) program

    Fixes most Context-sensitive help items in applications.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:26.
Find Us