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

📄 crackwinminedlg.h

📁 一个自动扫雷源码,来自csdn,效果并不好,我做了改动, 使之变为多线程.
💻 H
字号:
// CrackWinMineDlg.h : header file
//
/*
*   自动扫雷机 v1.0
*   Made By : cngdzhang
*   Date    : 2004.2
*
*/
#if !defined(AFX_CRACKWINMINEDLG_H__68F7DC99_8CA5_4A2F_A6C2_A8E6A0D7D31F__INCLUDED_)
#define AFX_CRACKWINMINEDLG_H__68F7DC99_8CA5_4A2F_A6C2_A8E6A0D7D31F__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCrackWinMineDlg dialog

#define FAILURE 0
#define SUCCESS 1
#define CHANGE 2
#define NOCHANGE 3

#define SEL1IN2 100
#define UNSPECIAL 200

/////////////////////////////////////


class CCrackWinMineDlg : public CDialog
{
// Construction
public:
	CString	m_winver;
	CString	m_language;

	bool bSucc;
	CCrackWinMineDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCrackWinMineDlg)
	enum { IDD = IDD_CRACKWINMINE_DIALOG };
	CEdit	m_edit;
	CButton	m_exit;
	CButton	m_about;
	CButton	m_info;
	CButton	m_wait;
	CButton	m_timer;
	CSpinButtonCtrl	m_spin;
	CSliderCtrl	m_speed;
	CButton	m_stoptime;
	CButton	m_start;
	int		m_sleeptime;
	CString	m_fast;
	CString	m_slow;
	CString	m_ms;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCrackWinMineDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnStart();
	afx_msg void OnStopTime();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnReleasedcaptureSliderSpeed(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnAbout();
	afx_msg void OnStart2();
	afx_msg void OnStart3();
	afx_msg void OnStart4();
	afx_msg void OnChangeEdit1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	bool bSet;
	void advanceDecision();


	void getWinLan();
	void getWinVer();
	void scanTheMap98();
	BOOL finish;
	BOOL needAdv;
	void count(int x,int y,int *blank,int * flag);
	void makeDecision();
	void scanTheMap();
	void selOneToClick();
	void resetData();
	int height;
	int width;
	int state;
	HDC hDC;
	int map[32][26];//最大的扫雷窗口为24行30列
	int pos[8][2];
	COLORREF color[8];
};

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

#endif // !defined(AFX_CRACKWINMINEDLG_H__68F7DC99_8CA5_4A2F_A6C2_A8E6A0D7D31F__INCLUDED_)

⌨️ 快捷键说明

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