I am making an edit-control wrapper class. The edit-control around which the class wraps is sub-classed so that the virtual methods (or ‘events’, such as virtual void OnChange()) can be overridden. My only question is, if I handle, let’s say, the EN_CHANGE notification, in the controls subclass procedure, can the user still handle the EN_UPDATE notification in the parent windows procedure? Or does subclassing a control mean ALL of the notifications are handled by the controls new window procedure?
I am making an edit-control wrapper class. The edit-control around which the class wraps
Share
The messages that your subclass does not process should be given to
CallWindowProc(original window procedure)so that the default for the control will happen instead.That said, the
EN_notifications don’t get sent to the control, they get sent to the parent directly.