⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setcolor.h

📁 生命游戏的C++演示
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -