I want to be able to change the ID of the help that is displayed after selecting a button that has the ID_CONTEXT_HELP id. The default MFC routine for this just grabs your EXE name and path and calls it asking for the help for the ID of the control that you pressed. I know that I can change the help file name quite easily by setting m_pszHelpFilePath, but I can't seem to trap the call to WinHelp. I have tried overriding the OnCommandHelp routine as described in the MFC Tech Note 28 but it does not work, the routine is never called. Anyone know what I am doing wrong?
I would also like to know how to change the ID of the button that instigates context sensitive help, if I change the ID it does not work anymore!