dialogcolorsetup.h
来自「一个俄罗斯方块的vc源代码」· C头文件 代码 · 共 71 行
H
71 行
#if !defined(AFX_DIALOGCOLORSETUP_H__FA741471_F776_11D4_8F38_D7789EB78C12__INCLUDED_)
#define AFX_DIALOGCOLORSETUP_H__FA741471_F776_11D4_8F38_D7789EB78C12__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DialogColorSetup.h : header file
//
#include "ColorPickerCB.h"
#include "BtnST.h"
/////////////////////////////////////////////////////////////////////////////
// CDialogColorSetup dialog
class CDialogColorSetup : public CDialog
{
// Construction
public:
//颜色设置
COLORREF m_clrCube;//方块颜色
COLORREF m_clrDeclareCube;//声明区域的方块颜色
COLORREF m_clrMaxRect;//最大区域颜色
COLORREF m_clrDeclareRect;//声明区域颜色
COLORREF m_clrDiamondsRect;//运行区域颜色
COLORREF m_clrLine;//方格线颜色
COLORREF m_clrDeclareFont; //声明区域的字体颜色
COLORREF m_clrGameOverFont; //游戏结束字体的颜色
CButtonST ButtonOK,ButtonCancel;
CDialogColorSetup(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDialogColorSetup)
enum { IDD = IDD_DIALOG_COLORSETUP };
CTabCtrl m_TabSetup;
CColorPickerCB m_ComboColor;
BOOL m_bRandomCubeColor; //随机产生运动方块颜色
CString m_FirstLeft;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogColorSetup)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDialogColorSetup)
afx_msg void OnButtonChange();
virtual void OnOK();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnButtonDefault();
afx_msg void OnChangeEdit1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIALOGCOLORSETUP_H__FA741471_F776_11D4_8F38_D7789EB78C12__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?