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

📄 crackwinminedlg.h

📁 自动扫雷机 v1.0 1.双语版(中文,英文),能自动检测操作系统版本和语言,采用相应的界面和扫雷规则 2.可以自动完成扫雷过程, 在Athlon 1G上的最好成绩为: 初级:1秒 中级:1秒 高级:
💻 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:
	CCrackWinMineDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCrackWinMineDlg)
	enum { IDD = IDD_CRACKWINMINE_DIALOG };
	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_winver;
	CString	m_language;
	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
	DECLARE_MESSAGE_MAP()
private:
	void advanceDecision();
	int sleepTime;
	BOOL isInWin98;
	DWORD dwVersion;
	DWORD dwWindowsMajorVersion;
	DWORD dwWindowsMinorVersion;
	DWORD dwBuild;
	CString winMineClassName;
	CString failureMsg;
	CString successMsg;
	CString hintMsg;
	CString errMsg;
	CString iconicMsg;
	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;
	HWND hWnd;
	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 + -