winlottorydoc.h

来自「完成抽奖的基本功能。可以载入文本文件」· C头文件 代码 · 共 78 行

H
78
字号
// WinLottoryDoc.h : interface of the CWinLottoryDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_WINLOTTORYDOC_H__484299E2_B1B6_48D1_B6AD_24FA35C8772A__INCLUDED_)
#define AFX_WINLOTTORYDOC_H__484299E2_B1B6_48D1_B6AD_24FA35C8772A__INCLUDED_

#include "Picture.h"	// Added by ClassView
#include "CIniFile.h"	// Added by ClassView
#include "stdafx.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CWinLottoryDoc : public CDocument
{
protected: // create from serialization only
	CWinLottoryDoc();
	DECLARE_DYNCREATE(CWinLottoryDoc)

// Attributes
public:
	CString		 m_sConfigFileName;
	CIniFile	 m_sConfigFile;
	CString		 m_sLottoryFileName;
	CStdioFile   m_sLottoryFile;
	// 抽奖号码
	CStringArray m_sLottoryData;
	// 中奖号码
	CStringArray m_sLottoryBingo;
	int m_nIfTimer;
	int m_nIfSetTimer;
	// 
	int m_nLottoryTimes;
	int m_nLottory[3];
	// 本次抽奖开关
	int m_nFlag;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWinLottoryDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CWinLottoryDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	CPicture m_pict;
public:
	
// Generated message map functions
protected:
	
	//{{AFX_MSG(CWinLottoryDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WINLOTTORYDOC_H__484299E2_B1B6_48D1_B6AD_24FA35C8772A__INCLUDED_)

⌨️ 快捷键说明

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