Use class wizard to derive a new class from a present class?

Use class wizard to derive a new class from a present class?

Post by DLB » Fri, 05 Apr 1996 04:00:00



Can I use class wizard to derive a class from the view class it
created with the AppWizard.  I used AppWizard to create a project
with a View (CNewView) from the CFormView class.  Now I want to
derive a new View from that class.

class COpenView : Public CNewView
{
//Many of the function for both veiws are identical

Quote:}

Many of the funtions in both views will be almost identical.  So
I felt that by deriving the other views from CNewView they could
just inherit those same functions.

When I use class wizard and select NewClass from the pull down
menu you can not choose CNewView (you also can not choose CObject).
So how do I use class wizard to do this?

Thanks
DLB

 
 
 

Use class wizard to derive a new class from a present class?

Post by A. Sande » Sun, 07 Apr 1996 04:00:00



> Can I use class wizard to derive a class from the view class it

> When I use class wizard and select NewClass from the pull down
> menu you can not choose CNewView (you also can not choose CObject).
> So how do I use class wizard to do this?

Well, I directly change the created .cpp and .h file. AppWizard
rescans the code correctly and will recognize the new super-class.

May be there are other ways to manipulate the base-class
choices of the class-wizard?

Quote:> Thanks
> DLB

ciao,
Armin

 
 
 

1. Derive a class from CRecordset class and have the derived class appear in Classwizard Dropdown

Hi,
I want to do the following:

Derive a class from CRecordset that extends the functionality of CRecordset
BUT does
not yet reference any specific recordset. (an abstract class I guess).
I want this derived class to appear in the "base class" dropdown of the MFC
Class Wizard "Automation" tab
when I select "new Class".

The problem is I can only use class wizard to create new derived class from
CRecordset when I actually
want to create a new derived class specialised for a certain recordset from
my new baseclass.
Is this possible?
At present I select CRecordset and manually edit the resulting CRecordset
derived class.
Visual Studio enterprise V6.0SP3

Cheers,
Andy Cullen

2. DNS, NT & WEBSITE

3. using a derived class of a CView derived class

4. Multi-session CDROMs

5. classwizard and making a derived class a base class for another class

6. Locking up problem...

7. Creating a class through class wiz which derives from a class not listed

8. SIPBehavior

9. How to: CCmdTarget derived class inside another CCmdTarget derived class.

10. Q:customizing class wizard (creating new classes from ODBC src)

11. Use Class Wizard on app developed without Class Wizard

12. Template class derived from a Template class???

13. MFC Derived Classes from Classes