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

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)
 
 

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


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




Thread Tools



Similar help and support threads for2: Context sensitive help is not working
Thread Forum
Solved Computer Context menu - Manage not working General Discussion
Solved Time-sensitive problem Virtualization
touchpad sensitive Drivers
lost context menu access (right click from mouse not working) BSOD Help and Support
Protecting Sensitive Data with AD RMS. Chillout Room
Title bar too sensitive? 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 01:10 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 33