e1102doc.cpp

来自「一个vc6.0的通讯录代码范例,适合新手入门」· C++ 代码 · 共 84 行

CPP
84
字号
// E1102Doc.cpp : implementation of the CE1102Doc class
//

#include "stdafx.h"
#include "E1102.h"

#include "E1102Doc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CE1102Doc

IMPLEMENT_DYNCREATE(CE1102Doc, CDocument)

BEGIN_MESSAGE_MAP(CE1102Doc, CDocument)
	//{{AFX_MSG_MAP(CE1102Doc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CE1102Doc construction/destruction

CE1102Doc::CE1102Doc()
{
	m_DB.Open("C:\\Books\\11\\DB\\ͨѶ¼.mdb");
}

CE1102Doc::~CE1102Doc()
{
}

BOOL CE1102Doc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CE1102Doc serialization

void CE1102Doc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CE1102Doc diagnostics

#ifdef _DEBUG
void CE1102Doc::AssertValid() const
{
	CDocument::AssertValid();
}

void CE1102Doc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CE1102Doc commands

⌨️ 快捷键说明

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