Click to See Complete Forum and Search --> : How can I deride a class from CEditView and CRichEditView


Ole
May 19th, 1999, 11:12 PM
I want to define a view class and I want to derived it from the base class CEditView and CRichEditView. But I don't know how to do it, The Functions I programmed can be complied for one base class(CEditView or CRichEditView).If
anyone know how to do it,please let me know.

Dan Haddix
May 20th, 1999, 02:01 AM
If your using AppWizard to create a new project it's simple!!! On the last step simply highlight the view class and change the base class from the drop down menu at the bottom. If your trying to modify an existing project then you'll need to make sure to change all the include statements to reflect the new base or it won't compile. Good Luck!!!

Jack Shainsky
May 20th, 1999, 02:12 AM
If you want derive your view from both CRichEditView and CEditView, you can try to use the multiple inheritance with virtual base class, but the MFC help doesn't recommend to do this

Jack Shainsky
Jerusalem, Israel.
jack.shainsky@usa.net