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

📄 dicedlg.h

📁 用vc++开发的一个经典程序:Dice。自己开发的
💻 H
字号:
// diceDlg.h : header file
//

#if !defined(AFX_DICEDLG_H__063AE34B_E7D4_482F_B30B_85A591A4EB0A__INCLUDED_)
#define AFX_DICEDLG_H__063AE34B_E7D4_482F_B30B_85A591A4EB0A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "dicebox.h"
#include "dice6.h"
#include "player.h"

/////////////////////////////////////////////////////////////////////////////
// CDiceDlg dialog

//##ModelId=4507556A0343
class CDiceDlg : public CDialog
{
// Construction
public:
	//##ModelId=4507556A034E
	CDiceDlg(CWnd* pParent = NULL);	// standard constructor

	//##ModelId=4507556A037F
	DiceBox dicebox;
	Player player1,player2;
// Dialog Data

	enum { IDD = IDD_DICE_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//##ModelId=4507556A0383
	CString m_Display1;
	//##ModelId=4507556A0389
	CString m_Display2;
	//##ModelId=4507556A038A
	CString m_Display3;
	//##ModelId=4507556A038B
	CString m_Display4;
	//##ModelId=4507556A0393
	CString m_Display5;
	//##ModelId=4507556A0394
	CString m_Display6;
	//##ModelId=4507556A0395
	CString m_Display7;
	//##ModelId=4507556A039D
	CString m_Display8;
	//##ModelId=4507556A039E
	CString m_Display9;
	//##ModelId=4507556A039F
	CString m_Display10;
	//##ModelId=4507556A03A7
	CString m_Display11;
	//##ModelId=4507556A03A8
	CString m_Display12;
	//##ModelId=4507556A03A9
	CString m_Display13;
	//##ModelId=4507556A03B1
	CString m_Display14;
	//##ModelId=4507556A03B2
	CString m_Display15;
	//##ModelId=4507556A03B3
	CString m_Display16;
	//##ModelId=4507556A03BB
	CString m_Display17;

	// ClassWizard generated virtual function overrides
	
	protected:
	//##ModelId=4507556A03BC
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	

// Implementation
protected:
	//##ModelId=4507556A03CF
	HICON m_hIcon;

	// Generated message map functions

	//##ModelId=4507556A03D0
	virtual BOOL OnInitDialog();
	//##ModelId=4507556A03E3
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	//##ModelId=4507556B000F
	afx_msg void OnPaint();
	//##ModelId=4507556B0019
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

public:
	//##ModelId=4507556B0023
	afx_msg void OnBnClickedOk();
	//##ModelId=4507556B002D
	afx_msg void OnBnClickedCancel();
	//##ModelId=4507556B002F
	afx_msg void OnBnClickedButton1();
	//##ModelId=4507556B0037
	afx_msg void OnBnClickedButton3();
	//##ModelId=4507556B0041
	afx_msg void OnBnClickedButton2();
	//##ModelId=4507556B0043
	afx_msg void OnBnClickedButton5();
	//##ModelId=4507556B004B
	afx_msg void OnBnClickedButton4();
	//##ModelId=4507556B0055
	afx_msg void OnLbnSelchangeList1();
	//##ModelId=4507556B0057
	afx_msg void OnEnChangeEdit1();
	//##ModelId=4507556B0059
	afx_msg void OnEnChangeEdit2();
	//##ModelId=4507556B0060
	afx_msg void OnEnChangeEdit3();
	//##ModelId=4507556B0069
	afx_msg void OnEnChangeEdit4();
	//##ModelId=4507556B0073
	afx_msg void OnEnChangeEdit5();
	//##ModelId=4507556B0075
	afx_msg void OnEnChangeEdit6();
	//##ModelId=4507556B007D
	afx_msg void OnEnChangeEdit7();
	//##ModelId=4507556B007F
	afx_msg void OnEnChangeEdit8();
	//##ModelId=4507556B0088
	afx_msg void OnEnChangeEdit9();
	//##ModelId=4507556B008A
	afx_msg void OnEnChangeEdit10();
	//##ModelId=4507556B0092
	afx_msg void OnEnChangeEdit11();
	//##ModelId=4507556B0094
	afx_msg void OnEnChangeEdit12();

	//##ModelId=4507556B009B
	afx_msg void OnEnChangeEdit13();
	//##ModelId=4507556B009D
	void DisplayDice(void);

	//##ModelId=4507556B00A5
	afx_msg void OnEnChangeEdit14();
	//##ModelId=4507556B00A7
	void DisplayPlayer(void);

	//##ModelId=4507556B00A9
	afx_msg void OnEnChangeEdit15();
	//##ModelId=4507556B00B0
	afx_msg void OnEnChangeEdit16();
	//##ModelId=4507556B00B2
	void DisplayRound(void);
	//##ModelId=4507556B00BA
	void DisplayScore(void);
	//##ModelId=4507556B00BC
	void DisplayRank(void);
	//##ModelId=4507556B00C3
	void DisplayTXT(void);
	//##ModelId=4507556B00C5
	afx_msg void OnEnChangeEdit17();
	//##ModelId=4507556B00CD
	void DisplayInfo(CString msg);
	
};

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

#endif // !defined(AFX_DICEDLG_H__063AE34B_E7D4_482F_B30B_85A591A4EB0A__INCLUDED_)

⌨️ 快捷键说明

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