You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
2.6 KiB
C++
108 lines
2.6 KiB
C++
// mfxtest2Doc.cpp : Implementierung der Klasse CMfxtest2Doc
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "mfxtest2.h"
|
|
|
|
#include "mfxtest2Doc.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMfxtest2Doc
|
|
|
|
IMPLEMENT_DYNCREATE(CMfxtest2Doc, CDocument)
|
|
|
|
BEGIN_MESSAGE_MAP(CMfxtest2Doc, CDocument)
|
|
//{{AFX_MSG_MAP(CMfxtest2Doc)
|
|
// HINWEIS - Hier werden Mapping-Makros vom Klassen-Assistenten eingefügt und entfernt.
|
|
// Innerhalb dieser generierten Quelltextabschnitte NICHTS VERÄNDERN!
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
BEGIN_DISPATCH_MAP(CMfxtest2Doc, CDocument)
|
|
//{{AFX_DISPATCH_MAP(CMfxtest2Doc)
|
|
// HINWEIS - Hier werden Mapping-Makros vom Klassen-Assistenten eingefügt und entfernt.
|
|
// Innerhalb dieser generierten Quelltextabschnitte NICHTS VERÄNDERN!
|
|
//}}AFX_DISPATCH_MAP
|
|
END_DISPATCH_MAP()
|
|
|
|
// Hinweis: Wir stellen Unterstützung für IID_IMfxtest2 zur Verfügung, um typsicheres Binden
|
|
// von VBA zu unterstützen. Diese IID muss mit der GUID übereinstimmen, die bei der
|
|
// Disp-Schnittstelle in der .ODL-Datei angegeben ist.
|
|
|
|
// {C013C612-C99C-4024-97F5-4E348758AB6E}
|
|
static const IID IID_IMfxtest2 =
|
|
{ 0xc013c612, 0xc99c, 0x4024, { 0x97, 0xf5, 0x4e, 0x34, 0x87, 0x58, 0xab, 0x6e } };
|
|
|
|
BEGIN_INTERFACE_MAP(CMfxtest2Doc, CDocument)
|
|
INTERFACE_PART(CMfxtest2Doc, IID_IMfxtest2, Dispatch)
|
|
END_INTERFACE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMfxtest2Doc Konstruktion/Destruktion
|
|
|
|
CMfxtest2Doc::CMfxtest2Doc()
|
|
{
|
|
// ZU ERLEDIGEN: Hier Code für One-Time-Konstruktion einfügen
|
|
|
|
EnableAutomation();
|
|
|
|
AfxOleLockApp();
|
|
}
|
|
|
|
CMfxtest2Doc::~CMfxtest2Doc()
|
|
{
|
|
AfxOleUnlockApp();
|
|
}
|
|
|
|
BOOL CMfxtest2Doc::OnNewDocument()
|
|
{
|
|
if (!CDocument::OnNewDocument())
|
|
return FALSE;
|
|
|
|
// ZU ERLEDIGEN: Hier Code zur Reinitialisierung einfügen
|
|
// (SDI-Dokumente verwenden dieses Dokument)
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMfxtest2Doc Serialisierung
|
|
|
|
void CMfxtest2Doc::Serialize(CArchive& ar)
|
|
{
|
|
if (ar.IsStoring())
|
|
{
|
|
// ZU ERLEDIGEN: Hier Code zum Speichern einfügen
|
|
}
|
|
else
|
|
{
|
|
// ZU ERLEDIGEN: Hier Code zum Laden einfügen
|
|
}
|
|
}
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMfxtest2Doc Diagnose
|
|
|
|
#ifdef _DEBUG
|
|
void CMfxtest2Doc::AssertValid() const
|
|
{
|
|
CDocument::AssertValid();
|
|
}
|
|
|
|
void CMfxtest2Doc::Dump(CDumpContext& dc) const
|
|
{
|
|
CDocument::Dump(dc);
|
|
}
|
|
#endif //_DEBUG
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMfxtest2Doc Befehle
|