12doc.cpp

来自「文本文件和二进制文件的区别。用文本方式读写文件和以二进制方式读写文件的注意事项。」· C++ 代码 · 共 85 行

CPP
85
字号
// 12Doc.cpp : implementation of the CMy12Doc class
//

#include "stdafx.h"
#include "12.h"

#include "12Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMy12Doc

IMPLEMENT_DYNCREATE(CMy12Doc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CMy12Doc construction/destruction

CMy12Doc::CMy12Doc()
{
	// TODO: add one-time construction code here

}

CMy12Doc::~CMy12Doc()
{
}

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

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CMy12Doc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CMy12Doc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CMy12Doc commands

⌨️ 快捷键说明

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