I have a dialog with several controls. I right click any of these controls and click "Create Event Handler". The dialog appears and there is a list of classes to choose for the function to be put, but the left side has no list of events to handle. Everything is basically blank. Why is this not working

"Create Event Handler" not working?
Manu Evans
My project that I'm trying to create event handlers for is actually in a solution with 4 other projects (most are non-MFC projects). I have the MFC project I want to create event handlers for set as the default startup project, but it still does not work. The "Add Event Handler" dialog is still empty.
When I open up this very same MFC project seperately (with no other projects in its solution) it works fine. I can add event handlers.
Why isn't this working It's really holding up my productivity. Someone please help. My frustration with this is overwhelming.
Perrin1234
tehmann
While I don't have a solution for you, I would try playing around with your project / solution settings.
If you can come up with a small step by step repro of the problem, we also might be able to help.
Thanks,
Ben
bilbo08831
Have you got any manually-hacked resource header or script files in the project Perhaps the add event handler dialog will only display a list of messages if it knows the underlying type of the resource given by the IDC_buttonname resource identifier.
A way to verify this might be to go to resource view, and expand your project. Right-click on the 'rc' entry under that (usually "projectname.rc" and select 'Resource Symbols').
See if you can find the ID of one of the buttons that isn't working. If you can't, then there's a problem with your resource includes. Resource.h might not be getting included in the resource script.
If it is there, then check the resource usage of that symbol. Look on the bottom-left of the same dialog, and DevEnv tells you if it can find any entities within any .rc file within your project that reference it.
If everything seems fine after doing all that - then I'd probably think about building an entirely new project file, in a blank solution, from this one. Clone the source files into the new project's directory and add them all back into the new project. See if it works now. If it does, go back to your old solution, remove the old one and add the new one in it's place.
If it doesn't...
Well, then, that looks like a job for a VC++ editor dev!
Hope that helps!