How to implement MDI with different base classes? 
Author Message
 How to implement MDI with different base classes?

Hi, there,

If I want to create a MDI program with VC6.0, the class wizard will ask you
which base class you want' CView, or CEditView, or CFormView. Now, I want
several kinds child window, one is CEditView, and another is CFormView. But
how to make a childwnd is both a subclass of CMDIChildWnd and CEditView?

Thanks

Feng



Sat, 15 Feb 2003 03:00:00 GMT  
 How to implement MDI with different base classes?

Quote:
>If I want to create a MDI program with VC6.0, the class wizard will ask you
>which base class you want' CView, or CEditView, or CFormView. Now, I want
>several kinds child window, one is CEditView, and another is CFormView. But
>how to make a childwnd is both a subclass of CMDIChildWnd and CEditView?

Feng,

Have a look at "Views Samples" in the Visual C++ help. I think the
CHKBOOK sample might help you.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Sun, 16 Feb 2003 07:24:53 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Need help implementing a class which has NO base class

2. std::vector holding different class types sharing a same base class

3. address of base class and derived class different

4. Implementing Error Reporting in an ActiveX Control based on the MFC class COleControl

5. CArray of different classes derived from common base

6. CArray of different classes derived from common base

7. Form wich base class is CDialog Iin a MDI application

8. Protected member in a base class of a base class

9. class class-name: base-class : interface

10. Trying to add a class with no base class in Class Wizard

11. ECC-based base class template code

12. Internal Compiler Error while deriving C# class from a MC++ class implementing a C# interface

 

 
Powered by phpBB® Forum Software