📄 ex3_3doc.cpp
字号:
// Ex3_3Doc.cpp : implementation of the CEx3_3Doc class
//
#include "stdafx.h"
#include "Ex3_3.h"
#include "Ex3_3Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEx3_3Doc
IMPLEMENT_DYNCREATE(CEx3_3Doc, CDocument)
BEGIN_MESSAGE_MAP(CEx3_3Doc, CDocument)
//{{AFX_MSG_MAP(CEx3_3Doc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CEx3_3Doc construction/destruction
CEx3_3Doc::CEx3_3Doc()
{
// TODO: add one-time construction code here
}
CEx3_3Doc::~CEx3_3Doc()
{
}
BOOL CEx3_3Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
recno=0;
stuname="noname";
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CEx3_3Doc serialization
void CEx3_3Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
ar<<recno<<stuname;
}
else
{
// TODO: add loading code here
ar>>recno>>stuname;
}
}
/////////////////////////////////////////////////////////////////////////////
// CEx3_3Doc diagnostics
#ifdef _DEBUG
void CEx3_3Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CEx3_3Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CEx3_3Doc commands
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -