CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    4

    How can I deride a class from CEditView and CRichEditView

    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.


  2. #2
    Join Date
    May 1999
    Posts
    82

    Re: How can I deride a class from CEditView and CRichEditView

    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!!!


  3. #3
    Join Date
    May 1999
    Location
    Jerusalem, Israel
    Posts
    251

    Re: How can I deride a class from CEditView and CRichEditView

    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.
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured