www.pudn.com > FEMS.rar > FEMSDoc.cpp
// FEMSDoc.cpp : implementation of the CFEMSDoc class
//
#include "stdafx.h"
#include "FEMS.h"
#include "FEMSDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFEMSDoc
IMPLEMENT_DYNCREATE(CFEMSDoc, CDocument)
BEGIN_MESSAGE_MAP(CFEMSDoc, CDocument)
//{{AFX_MSG_MAP(CFEMSDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CFEMSDoc, CDocument)
//{{AFX_DISPATCH_MAP(CFEMSDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IFEMS to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {41EE8D96-2F27-4B63-9265-11A529702F76}
static const IID IID_IFEMS =
{ 0x41ee8d96, 0x2f27, 0x4b63, { 0x92, 0x65, 0x11, 0xa5, 0x29, 0x70, 0x2f, 0x76 } };
BEGIN_INTERFACE_MAP(CFEMSDoc, CDocument)
INTERFACE_PART(CFEMSDoc, IID_IFEMS, Dispatch)
END_INTERFACE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFEMSDoc construction/destruction
CFEMSDoc::CFEMSDoc()
{
// TODO: add one-time construction code here
EnableAutomation();
AfxOleLockApp();
}
CFEMSDoc::~CFEMSDoc()
{
AfxOleUnlockApp();
}
BOOL CFEMSDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CFEMSDoc serialization
void CFEMSDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CFEMSDoc diagnostics
#ifdef _DEBUG
void CFEMSDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CFEMSDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CFEMSDoc commands