Quote:
explanation about link between CEdit and CEditView
CEditView
is a bit special. While not inherited form
CEdit
, it is behaving like one. See
afxext.inl:
_AFXEXT_INLINE CEdit& CEditView::GetEditCtrl() const
{ return *(CEdit*)this; }
The solution is to implement the required functionality in your
CEditView
derived class.
If you have the source code of an extended
CEdit
class, copy the required code portions to your
CEditView
based class and prefix access to all
CEdit
members with
GetEditCtrl()
.