Windows 7 Forums


Windows 7: Context sensitive help is not working

17 Feb 2011   #1

Windows 7 64 bit
 
 
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 System SpecsSystem Spec

17 Feb 2011   #2

Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)
MILTON KEYNES
 
 

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

Windows 7 64 bit
 
 

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 System SpecsSystem Spec
.


25 May 2011   #4

Windows 7 Ultimate 6x64
 
 

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 System SpecsSystem Spec
14 Jul 2011   #5

Windows 7 64 bit Pro
 
 

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 System SpecsSystem Spec
Reply

 Context sensitive help is not working problems?



Thread Tools



Similar help and support threads for: Context sensitive help is not working
Thread Forum
Solved Computer Context menu - Manage not working General Discussion
touchpad sensitive Drivers
lost context menu access (right click from mouse not working) BSOD Help and Support
Title bar too sensitive? General Discussion


All times are GMT -5. The time now is 03:54 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32