Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Context sensitive help is not working

17 Feb 2011   #1

Windows 7 64 bit
Context sensitive help is not working


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:

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)

on the start menu index you have HELP AND SUPPORT hope this helps

Attached Images
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?

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

 Context sensitive help is not working

Thread Tools

Similar help and support threads
Thread Forum
Touch-Sensitive media not working
Dear Friends, Hope all is well...I'm new on here... Your supposed to be able to move your fingers over the "illuminated" sound bar at the plus (+) or minus (-) end and change the volume. (Volume Scroll Zone) It's not working. I have to adjust the volume manually from the speaker icon in the...
General Discussion
Computer Context menu - Manage not working
Hi, I have just noticed an odd occurrence when i right click on Computer either on my desktop or the start menu & click Manage, it does nothing, just a timer circle for a sec and thats it. can run the Computer Management shortcut fine. I have had win 7 installed for a little while now and i know...
General Discussion
touchpad sensitive
Hello, I would like to change the sensitivity settings of my touchpad, but nothing under control panel>mouse> device settings (nor anywhere else in the mouse options) shows up to adjust sensitivity. I am using windows 7 on a Samsung NP-R525 laptop computer which has synaptics pointing device...
Protecting Sensitive Data with AD RMS.
Source - Protecting Sensitive Data with AD RMS - Via Windows Server 2008 and Windows Server 2008 R2 - Softpedia
Chillout Room
Title bar too sensitive?
A window is maximized. When I click and hold the title bar and drag it a bit, the window resizes to a smaller window. What Win7 feature is this? Initially I had trouble with this. I know I wasn't double-clicking on the title bar for it to be resizing, but it was. Interestingly, on...
General Discussion

Our Sites

Site Links

About Us

Find 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 12:53.
Twitter Facebook Google+