Home > Software engineering >  Each prawn, how to add public inheritance to MFC window class?
Each prawn, how to add public inheritance to MFC window class?

Time:09-27

Each prawn, how to add public inheritance to MFC window class?

CodePudding user response:

The class yourClass: public aBaseClass
{
.
}

CodePudding user response:

This is the content of the c + +

CodePudding user response:

CodePudding user response:

Can the
Class your window class: public base class
{
//dosomething
}

CodePudding user response:

To add a base class or add public members?

CodePudding user response:

The back of the class add parent not directly

CodePudding user response:

Such as
//CBaseDialog dialog

The class CBaseDialog: public CDialog

The class CDlg1: public CBaseDialog

The class CDlg2: public CBaseDialog

CodePudding user response:

The class XXX: public xxx1, public xxx2, protected xxx3, private xxx4
{
.
}

CodePudding user response:

The class uWnd: piblic CWnd
{
.
}
  • Related