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