I have a problem implementing context sensitive help in dialog boxes.
I've entered a project, built with MFC which is already live and running.
The project already contain many dialog boxes, property sheets and form views, and I need to implement context sensitive help for all things that already work.
I did not want to enter each CDialog derived class and the like, and handle the WM_HELP message, so I've implemented an Hook which captures WM_HELP messages recieved from controls, and calls a Help File I've built.
It all works fine until I reach a point, where some controls have the same Child window ID, but need to show different Pop-Up messages in their tooltip window.
I know!, you should use different IDs for each control in your application, but I remind you all, that I do not have that previlege.
Many programmers worked on this project before me, and each one implemented his own Dialog boxes, and some names of controls are used over 6-8! different dialog boxes.
I thougt of taking into consideration the Template ID of the dialog itself when creating HM files and implementing the Hook, but I can't find out a common central way, to find a Dialog resource template identifier after the dialog is already created.
Did someone dealt with this thing before?
I'm pretty stressed on this manner, and I'll appreciate a good answer.