setcolor.h

来自「生命游戏的C++演示」· C头文件 代码 · 共 61 行

H
61
字号
#if !defined(AFX_SETCOLOR_H__3BB33B05_A961_11D3_B05F_0080C8F1A0D3__INCLUDED_)
#define AFX_SETCOLOR_H__3BB33B05_A961_11D3_B05F_0080C8F1A0D3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SetColor.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSetColor dialog

class CSetColor : public CDialog
{
// Construction
public:
	COLORREF GetLifeColor();
	COLORREF GetDieColor();
	COLORREF GetBKColor();
	int GetTime();
	CSetColor(CWnd* pParent = NULL);   // standard constructor

	void CopyColor(COLORREF bk, COLORREF life, COLORREF die,int time);

// Dialog Data
	//{{AFX_DATA(CSetColor)
	enum { IDD = IDD_SETCOLOR };
	CSliderCtrl	m_SetTime;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSetColor)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	COLORREF colBK;		//背景颜色
	COLORREF colLife;	//生命颜色
	COLORREF colDie;	//死亡颜色
	int iTime;

	// Generated message map functions
	//{{AFX_MSG(CSetColor)
	virtual BOOL OnInitDialog();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnBkcolor();
	afx_msg void OnLifecolor();
	afx_msg void OnDiecolor();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SETCOLOR_H__3BB33B05_A961_11D3_B05F_0080C8F1A0D3__INCLUDED_)

⌨️ 快捷键说明

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