Context sensitive Help ID



I have created a vs2008 mfc project using the wizard and with context help
ticked... all is well so far.

I have created a .chm file and mapped the dialog define numbers to the Help
Context Number of the help by converting from Hex to Decimal. the F1 button
works on the dialogs. I now select the ? icon on the dialog and click on the
controls where I want a specific page to open but the F1 page opens. I cannot
seem to map the define numbers in the resource.hm file created by VS2008 to
the help context number.

a typical hm file

// Microsoft Visual C++ generated Help ID include file.
// Used by h100.rc
//
#define HIDCANCEL 0x81360002 // IDD_DIALOG1
#define HIDC_BUThlp 0x813603e8 // IDD_DIALOG1
#define HIDC_CHECK1 0x813803ea // IDD_DIALOG3


I have tried subtracting 0x80000000 from these but still get the F1 help not
the detailed help of the control.

Does anybody know the conversion of the Hex values for these dialog controls.



.