collegemanagedemodoc.cpp
来自「这是一个大学校园的数据库管理系统,请大家提意见」· C++ 代码 · 共 92 行
CPP
92 行
// CollegeManageDemoDoc.cpp : implementation of the CCollegeManageDemoDoc class
//
#include "stdafx.h"
#include "CollegeManageDemo.h"
#include "CollegeManageDemoDoc.h"
#include "DlgInputPerson.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCollegeManageDemoDoc
IMPLEMENT_DYNCREATE(CCollegeManageDemoDoc, CDocument)
BEGIN_MESSAGE_MAP(CCollegeManageDemoDoc, CDocument)
//{{AFX_MSG_MAP(CCollegeManageDemoDoc)
ON_COMMAND(ID_PERSON_NEW, OnPersonNew)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCollegeManageDemoDoc construction/destruction
CCollegeManageDemoDoc::CCollegeManageDemoDoc()
{
// TODO: add one-time construction code here
}
CCollegeManageDemoDoc::~CCollegeManageDemoDoc()
{
}
BOOL CCollegeManageDemoDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CCollegeManageDemoDoc serialization
void CCollegeManageDemoDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CCollegeManageDemoDoc diagnostics
#ifdef _DEBUG
void CCollegeManageDemoDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CCollegeManageDemoDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCollegeManageDemoDoc commands
void CCollegeManageDemoDoc::OnPersonNew()
{
// TODO: Add your command handler code here
CDlgInputPerson dlgNewPerson;
dlgNewPerson.DoModal();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?