【VC开源代码栏目提醒】:网学会员为需要VC开源代码的朋友们搜集整理了FinanceMISDoc.cpp相关资料,希望对各位网友有所帮助!
// FinanceMISDoc.cpp : implementation of the CFinanceMISDoc class
//
#include "stdafx.h"
#include "FinanceMIS.h"
#include "FinanceMISDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFinanceMISDoc
IMPLEMENT_DYNCREATE(CFinanceMISDoc, CDocument)
BEGIN_MESSAGE_MAP(CFinanceMISDoc, CDocument)
//{{AFX_MSG_MAP(CFinanceMISDoc)
// 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(CFinanceMISDoc, CDocument)
//{{AFX_DISPATCH_MAP(CFinanceMISDoc)
// 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_IFinanceMIS to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {CD9E7FE4-126F-464D-9D86-B5B9D2030719}
static const IID IID_IFinanceMIS =
{ 0xcd9e7fe4, 0x126f, 0x464d, { 0x9d, 0x86, 0xb5, 0xb9, 0xd2, 0x3, 0x7, 0x19 } };
BEGIN_INTERFACE_MAP(CFinanceMISDoc, CDocument)
INTERFACE_PART(CFinanceMISDoc, IID_IFinanceMIS, Dispatch)
END_INTERFACE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFinanceMISDoc construction/destruction
CFinanceMISDoc::CFinanceMISDoc()
{
// TODO: add one-time construction code here
EnableAutomation();
AfxOleLockApp();
}
CFinanceMISDoc::~CFinanceMISDoc()
{
AfxOleUnlockApp();
}
BOOL CFinanceMISDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CFinanceMISDoc serialization
void CFinanceMISDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CFinanceMISDoc diagnostics
#ifdef _DEBUG
void CFinanceMISDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CFinanceMISDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CFinanceMISDoc commands