home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
distrib.akp.su/Programming/Vb-6+Rus/
/
distrib.akp.su.tar
/
distrib.akp.su
/
Programming
/
Vb-6+Rus
/
COMMON
/
MSDEV98
/
BIN
/
MFCCLWZ.DLL
/
SRCDATA
/
CONTROL.CPP
< prev
next >
Wrap
Text File
|
1998-06-18
|
2KB
|
78 lines
/////////////////////////////////////////////////////////////////////////////
// %1
$$IF(OLECREATE)
IMPLEMENT_DYNCREATE(%1, %2)
$$ENDIF
%1::%1()
{
$$IF(OLEAUTO)
EnableAutomation();
$$ENDIF
$$IF(OLECREATE)
// To keep the application running as long as an OLE automation
// object is active, the constructor calls AfxOleLockApp.
AfxOleLockApp();
$$ENDIF
}
%1::~%1()
{
$$IF(OLECREATE)
// To terminate the application when all objects created with
// with OLE automation, the destructor calls AfxOleUnlockApp.
AfxOleUnlockApp();
$$ENDIF
}
$$IF(OLEAUTO)
void %1::OnFinalRelease()
{
// When the last reference for an automation object is released
// OnFinalRelease is called. The base class will automatically
// deletes the object. Add additional cleanup required for your
// object before calling the base class.
%2::OnFinalRelease();
}
$$ENDIF
BEGIN_MESSAGE_MAP(%1, %2)
//{{AFX_MSG_MAP(%1)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
$$IF(OLEAUTO)
BEGIN_DISPATCH_MAP(%1, %2)
//{{AFX_DISPATCH_MAP(%1)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_I%c to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {%b}
static const IID IID_I%c =
%d;
BEGIN_INTERFACE_MAP(%1, %2)
INTERFACE_PART(%1, IID_I%c, Dispatch)
END_INTERFACE_MAP()
$$ENDIF //OLEAUTO
$$IF(OLECREATE)
// {%e}
IMPLEMENT_OLECREATE(%1, "%6", %7)
$$ENDIF //OLECREATE
/////////////////////////////////////////////////////////////////////////////
// %1 message handlers