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

📄 ms5dlg.h

📁 该工程是一个非常完整的,优化的五子棋源代码(VC),可以帮你学习路径选择算法和vc编程.
💻 H
字号:
// ms5Dlg.h : header file
//

#if !defined(AFX_MS5DLG_H__314BB969_5424_4D22_9EC9_A13AB96EF5AE__INCLUDED_)
#define AFX_MS5DLG_H__314BB969_5424_4D22_9EC9_A13AB96EF5AE__INCLUDED_

#include "FiveStoneProcess.h"	// Added by ClassView
#include "WBButton.h"
#include "GradientProgressCtrl.h"
#include "afxdao.h"

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



/////////////////////////////////////////////////////////////////////////////
// CMs5Dlg dialog

class CMs5Dlg : public CDialog
{
// Construction
public:
	void updatescore(CString column_name,int score);
	CMs5Dlg(CWnd* pParent = NULL);	// standard constructor
	~CMs5Dlg();
// Dialog Data
	//{{AFX_DATA(CMs5Dlg)
	enum { IDD = IDD_MS5_DIALOG };
	CGradientProgressCtrl	m_thinkprocess;
	CWBButton	m_clearscore;
	CEdit	m_winratio;
	CEdit	m_tieratio;
	CEdit	m_winnum;
	CEdit	m_tienum;
	CEdit	m_lossratio;
	CEdit	m_lossnum;
	CWBButton	m_continue;
	CWBButton	m_last;
	CWBButton	m_first;
	CWBButton	m_next;
	CWBButton	m_pre;
	CEdit	m_outinfo;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMs5Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnStart();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnExit();
	afx_msg void OnAlive();
	afx_msg void OnTwolevel();
	afx_msg void OnErase();
	afx_msg void OnMakealive();
	afx_msg void OnMaketwolevel();
	afx_msg void OnGetallpoints();
	afx_msg void OnAround();
	afx_msg void OnRun();
	afx_msg void OnDebug();
	afx_msg void OnFive();
	afx_msg void OnChange();
	afx_msg void OnAdvice();
	afx_msg void OnSave();
	afx_msg void OnLoad();
	afx_msg void OnRegret();
	afx_msg void OnQianmodel();
	afx_msg void OnQianaddone();
	afx_msg void OnPre();
	afx_msg void OnNext();
	afx_msg void OnFirst();
	afx_msg void OnLast();
	afx_msg void OnContinue();
	afx_msg void OnTwolevelqianmodel();
	afx_msg void OnDebugqian();
	afx_msg void OnHasfive();
	afx_msg void OnDefent();
	afx_msg void OnDebugchange();
	afx_msg void OnSub();
	afx_msg void OnTwomodel();
	afx_msg void OnThreeqianmodel();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnGrade1();
	afx_msg void OnGrade2();
	afx_msg void OnGrade3();
	afx_msg void OnGrade4();
	afx_msg void OnGrade5();
	afx_msg void OnAbout();
	afx_msg void OnSound();
	afx_msg void OnBeatpoint();
	afx_msg void OnMaketwoalive();
	afx_msg void OnTwolevelbeat();
	afx_msg void OnCvsc();
	afx_msg void OnClearscore();
	afx_msg void OnQiangqianmodeladdone();
	afx_msg void OnQiangqianmodel();
	afx_msg void OnQiangtowlevelqianmodel();
	afx_msg void OnShow();
	afx_msg void OnHascanfour();
	afx_msg void OnQiangtwolevel();
	afx_msg void OnMakeqian();
	afx_msg void OnSmallsubqian();
	afx_msg void OnBeat();
	afx_msg void OnMakebeat();
	afx_msg void OnValue();
	afx_msg void OnDefentpoint();
	afx_msg void OnChongtwo();
	afx_msg void OnGetclosetwolevel();
	afx_msg void OnTwoleveldefent();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnRenren();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void MyMessageBox(CString s);
	HBRUSH m_brush;
	void SetRatio();
	int win_num;
	int loss_num;
	int tie_num;
	CDaoDatabase conn;
	int showstep;
};

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

#endif // !defined(AFX_MS5DLG_H__314BB969_5424_4D22_9EC9_A13AB96EF5AE__INCLUDED_)

⌨️ 快捷键说明

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