financemisdoc.cpp

来自「个人财务管理系统,很实用的一个源码,很有参考价值,下载」· C++ 代码 · 共 108 行

CPP
108
字号
// 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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?