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

📄 selectnumberdlg.h

📁 一个关于怎样模拟双色球彩票的代码 非常好的哦~~ 直接在VC++6 可编译
💻 H
字号:
#if !defined(AFX_SELECTNUMBERDLG_H__F959EA66_1BA7_4F43_8CF4_5AF5324854C5__INCLUDED_)
#define AFX_SELECTNUMBERDLG_H__F959EA66_1BA7_4F43_8CF4_5AF5324854C5__INCLUDED_

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

#include "MyStaticText.h"
/////////////////////////////////////////////////////////////////////////////
// CSelectNumberDlg dialog

class CSelectNumberDlg : public CDialog
{
// Construction
public:
	CSelectNumberDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSelectNumberDlg)
	enum { IDD = IDD_SELECT_NUMBER_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSelectNumberDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonStartSelectNumber();
	afx_msg void OnButtonQuit();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int m_nRedBall1;
	int m_nRedBall2;
	int m_nRedBall3;
	int m_nRedBall4;
	int m_nRedBall5;
	int m_nRedBall6;
	int m_nBlueBall1;

	int	m_nLotterycopys;
	int	m_nSortStyle;

	CFont m_font1;
	CFont m_font2;

	CMyStaticText m_StaticRedBall;
    CMyStaticText m_MyStaticRedBall1;
	CMyStaticText m_MyStaticRedBall2;
	CMyStaticText m_MyStaticRedBall3;
	CMyStaticText m_MyStaticRedBall4;
	CMyStaticText m_MyStaticRedBall5;
	CMyStaticText m_MyStaticRedBall6;
	CMyStaticText m_StaticBlueBall;
	CMyStaticText m_MyStaticBlueBall;

	CArray<int,int> m_aRedBallNumber;
	CStringArray m_csRedBallNumberArray;

private:
	void SetValueForStaticText(int nStaticTextID, int nValue);
	void SetInitValueForRedBlueBall();
	void ChangeFontForStaticText();
	void SetFontColorForStaticText();
	void ChooseDoubleColorBall();
	void DisplayRealRedBallNumber();
	void GenerateRandomNumber(int nTotal, 
		                      int nChoose, 
							  int nStaticTextID, 
		                      CString csBallNumber, 
							  int nBallNumber);
	void GenerateRandomNumber(int nTotalNum, int nChooseNum);
};

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

#endif // !defined(AFX_SELECTNUMBERDLG_H__F959EA66_1BA7_4F43_8CF4_5AF5324854C5__INCLUDED_)

⌨️ 快捷键说明

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