griddoc2.cpp

来自「mfc internals 源码 mfc internals 源码」· C++ 代码 · 共 85 行

CPP
85
字号
// griddoc2.cpp : implementation file
//

// This is a part of the Objective Grid C++ Library.
// Copyright (C) 1995 ClassWorks, Stefan Hoenig.
// All rights reserved.
//
// This source code is only intended as a supplement to
// the Objective Grid Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding
// the Objective Grid product.
//

#include "stdafx.h"
#include "gridapp.h"
#include "griddoc2.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSampleDocument2

IMPLEMENT_DYNCREATE(CSampleDocument2, CDocument)

CSampleDocument2::CSampleDocument2()
{
}

BOOL CSampleDocument2::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;
	return TRUE;
}

CSampleDocument2::~CSampleDocument2()
{
}


BEGIN_MESSAGE_MAP(CSampleDocument2, CDocument)
	//{{AFX_MSG_MAP(CSampleDocument2)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()



/////////////////////////////////////////////////////////////////////////////
// CSampleDocument2 diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CSampleDocument2 serialization

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

/////////////////////////////////////////////////////////////////////////////
// CSampleDocument2 commands

⌨️ 快捷键说明

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