📄 winlottorydoc.cpp
字号:
// WinLottoryDoc.cpp : implementation of the CWinLottoryDoc class
//
#include "stdafx.h"
#include "WinLottory.h"
#include "WinLottoryDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CWinLottoryDoc
IMPLEMENT_DYNCREATE(CWinLottoryDoc, CDocument)
BEGIN_MESSAGE_MAP(CWinLottoryDoc, CDocument)
//{{AFX_MSG_MAP(CWinLottoryDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CWinLottoryDoc construction/destruction
CWinLottoryDoc::CWinLottoryDoc()
{
// TODO: add one-time construction code here
}
CWinLottoryDoc::~CWinLottoryDoc()
{
}
BOOL CWinLottoryDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
m_nIfTimer = 0;
m_nIfSetTimer = 1;
// 初-只设置有3等奖,完善时考虑用StringArray,动态使用
m_nLottoryTimes = 2;
m_nFlag = 0;
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CWinLottoryDoc serialization
void CWinLottoryDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
if (ar.IsLoading()) {
m_pict.Load(ar);
}
}
/////////////////////////////////////////////////////////////////////////////
// CWinLottoryDoc diagnostics
#ifdef _DEBUG
void CWinLottoryDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CWinLottoryDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CWinLottoryDoc commands
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -