I'm trying to extend CEdit so that I can modify its OnChar or OnKeyDown functions - so that I can perform input validation and not allow invalid input. However, I think I'm going about this all wrong - these functions are not being called for my subclass when I type keys as I expected. Am I right in assuming that member variables which are controls are not tied directly through my object? Everything in windows is a message right? Is there no way to go about this in a java-swing sort of way?
I've seen countless examples of how to do input validation with DDX and DDV calls - but I would much rather just create my own classes that already have all this behavior built into them - and have MFC use my classes and interact with them as objects...
Any suggestions or is this not possible with MFC?