📄 rectangledoc.h
字号:
// RectangleDoc.h : interface of the CRectangleDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_RECTANGLEDOC_H__13DCE0A8_6AD5_408E_8A05_19ECF769779C__INCLUDED_)
#define AFX_RECTANGLEDOC_H__13DCE0A8_6AD5_408E_8A05_19ECF769779C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define BITMAPNUM 12
#define RECT 0
#define BOMB 1
#define FRAME 2
#define NEXT 3
#define SCORE 4
#define GAMEOVER 5
#define START 6
#define BOARD 7
#define NUMBER 8
#define COMBO 9
#define LEVELUP 10
#define ITEM 11
class CRectangleDoc : public CDocument
{
protected: // create from serialization only
CRectangleDoc();
DECLARE_DYNCREATE(CRectangleDoc)
// Attributes
public:
CBitmap rect;
CBitmap bomb;
CBitmap nextbar;
CBitmap frame;
CBitmap score;
CBitmap gameover;
CBitmap start;
CBitmap board;
CBitmap number;
CBitmap combo;
CBitmap levelup;
CBitmap item;
int width[BITMAPNUM];
int height[BITMAPNUM];
private:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRectangleDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CRectangleDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CRectangleDoc)
// 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_RECTANGLEDOC_H__13DCE0A8_6AD5_408E_8A05_19ECF769779C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -