Context sensitive help is not working

Sudipto

New member
Local time
5:32 AM
Messages
2
Hi,

I have recently migrated to Windows 7 :cry: 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

OS
Windows 7 64 bit
on the start menu index you have HELP AND SUPPORT hope this helps
 

Attachments

  • brys snap ?17 ?February ?2011 10h43m08s.png
    brys snap ?17 ?February ?2011 10h43m08s.png
    97.4 KB · Views: 7

My Computer

Computer Manufacturer/Model Number
packard bell IXTREME M5722
OS
Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)
CPU
Processor : Intel Core 2 Quad Q8300 @ 2500 MHz
Motherboard
Mainboard : Packard Bell (Acer EG43M )
Memory
Physical Memory :8GB Corsair4x 2GB 800MHz C5 DDR2
Graphics Card(s)
Video Card : XFX 6700 AMD
Monitor(s) Displays
Maestro 234DL - BenQ V2220 - BenQ VW2420H
Screen Resolution
Current Display :1920x1080p pixels at 60 Hz in HD LED
Hard Drives
Hard Disks : WDC (1000 GB)
Drive C: (Hard Disk) : 428 GB available on 491 GB
Drive D: (Hard Disk) : 426 GB available on 492 GB
SAMSUNG spinpoint HD103SJ 1000.2 GB
(X 2) KINGSTON SSD NOW V 30GB
PSU
XFX ProSeries 550W PSU
Case
PACKARD BELL IXTREME
Cooling
System Blower Current: 150mA Air Flow16CFM ;Akasa 90mm rear
Keyboard
Gigabyte Aivia K8100
Mouse
TRUST-Wireless Laser Mouse - Carbon edition MI-7770C
Internet Speed
TP-LINK > TL-WN951N / AV500 Gigabit Powerline Adapters
Browser
chrome dev
Other Info
EXTRA COOLING>(FAN CONTROLLER) PC Bay Cooler 3 x 40mm fans; Akasa AK-HD-BL Blue hard drive cooler 2 x 40 mm fan 4500 rpm 29.7 dBA
Bios> American Megatrends Inc.
Version : P01-A1
Date : 08/31/2009
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

OS
Windows 7 64 bit
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

OS
Windows 7 Ultimate 6x64
Back
Top