I'm pretty new to MFC, and I've been working on a test program for aw hile. It started out as a "Multiple top-level documents" type program, but since I've used this program as my sandbox to test all the new things I've been learning about MFC it's turned into more of an SDI-like application (it only has one view and one document) but uses a CMultiDocTemplate object instead of a SingleDocTemplate object.
Well, everything was working fine until today when I edited the code pretty heavily, mainly just adding lots of user events and event handlers that are handled in my app's frame window class. I compiled it and ran it, and for some reason all of my menu items whose events were handled in my view class (and which were unchanged and were working fine prior to this) were greyed out. I messed with some of the code, made sure all the ON_COMMAND message maps were correct and in place, and still nothing. I placed the same message handlers and ON_COMMAND maps into my frame window's class, and, lo and behold, they show up and work correctly in the menu when the program is run.
I have checked all the super obvious things, like declaring DECLARE_MESSAGE_MAP() at the end of my view class' class declaration.
Is there something stupid that I could have inadvertantly changed
to have caused this? Could it be that I've somehow disabled messages being passed to the app's view or it's message map? It's been really frustrating and I have a lot of work i could be doing instead of banging my head against the wall for such a seemingly dumb problem, so I'd really appreciate any help you might be able to give me.