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

📄 6and1dlg.h

📁 6+1彩票:已知中奖结果
💻 H
字号:
// 6and1Dlg.h : header file
//

#if !defined(AFX_6AND1DLG_H__3CF59A12_A7B5_4E43_AF9F_391340B34965__INCLUDED_)
#define AFX_6AND1DLG_H__3CF59A12_A7B5_4E43_AF9F_391340B34965__INCLUDED_

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

#include "Label.h"
#include "editex.hxx"

struct LOTTERY
{
	CString number[16];	//投注号
	int rst_basic;		//基本号猜中数
	int rst_extra;		//特别号猜中数
};

/////////////////////////////////////////////////////////////////////////////
// CMy6and1Dlg dialog

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

// Dialog Data
	//{{AFX_DATA(CMy6and1Dlg)
	enum { IDD = IDD_MY6AND1_DIALOG };
	CEdit	m_window;
	CLabel	m_rst_extra;
	CLabel	m_rst_basic;
	CLabel	m_total;
	CLabel	m_title;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMy6and1Dlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	CString m_strTemp;
	TCHAR m_charTemp;

	bool m_success;
	bool m_start;
	bool m_save;

	// Generated message map functions
	//{{AFX_MSG(CMy6and1Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAction();
	afx_msg void OnSave();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	int  SplitString(CString& str,TCHAR cTok,CStringArray& aryItem) ;
	bool InitConfig();			//初始化设置
	bool InitData();			//初始化数组

	CString win_title;			//主标题
	int  num_basic;				//基本号数量
	int  num_extra;				//特别号数量
	int  num_total;				//彩票总注数
	int  max_total;				//允许的最大总数
	struct LOTTERY *lottery;	//彩票投注数组
	CString rst_basic[16];		//中奖结果-基本号
	CString rst_extra[4];		//中奖结果-特别号
};

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

#endif // !defined(AFX_6AND1DLG_H__3CF59A12_A7B5_4E43_AF9F_391340B34965__INCLUDED_)

⌨️ 快捷键说明

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