📄 diamonddlg.h
字号:
// DiamondDlg.h : header file
//
#if !defined(AFX_DIAMONDDLG_H__08CD3F67_2287_11D5_9D26_0000B4B0CC65__INCLUDED_)
#define AFX_DIAMONDDLG_H__08CD3F67_2287_11D5_9D26_0000B4B0CC65__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "RecordDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CDiamondDlg dialog
class CDiamondDlg : public CDialog
{
// Construction
public:
int m_Level,m_Score;
void NewRecord();
long m_recordScore[10];
int m_recordNo[10];
char m_recordName[10][12];
int m_recordLevel[10];
char m_recordDate[10][12];
int m_recordCount;
long m_maxScore;
int m_SettingLevel;
BOOL m_bShowRaster;
CRecordDlg * m_pRecordDlg1;
BOOL m_bPause;
int m_PlayedTimes;
int m_CurBlockMap;
CBitmap m_Bitmap[12];
int m_AccelerateSpeed;
void Acceleration();
void Rotation();
void MoveRight();
void EraseLastBlock();
void MoveLeft();
void DrawInitBlock();
void DrawAll();
void HighLightIt(int);
void GetScore();
void DrawCurBlock();
int m_OldIndex;
POINT m_CurBlock[4];
int m_Index;
BOOL m_bStart;
RECT m_Rect;
COLORREF m_RasterColor;
COLORREF m_bkColor;
CDC* m_pBlockDC;
int m_Matrix[22][10][2];
CDiamondDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDiamondDlg)
enum { IDD = IDD_DIAMOND_DIALOG };
CStatic m_Writer;
CEdit m_ScoreCtrl;
CEdit m_LevelCtrl;
CStatic m_StaticScore;
CStatic m_StaticLevel;
CStatic m_PreFrame;
CStatic m_Block;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDiamondDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void DrawNextBlock(int index);
void DropDown();
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDiamondDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnFilePause();
afx_msg void OnFileNewgame();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnHelpAbout();
afx_msg void OnFileRestart();
afx_msg void OnFileExit();
afx_msg void OnFileResume();
afx_msg void OnOptionConfig();
afx_msg void OnQueryRecord();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIAMONDDLG_H__08CD3F67_2287_11D5_9D26_0000B4B0CC65__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -