www.pudn.com > 1223456.rar > SetDlg.h


#if !defined(AFX_NEWGAMEDLG_H__CEFCDE83_32F2_41CA_A087_070499127128__INCLUDED_) 
#define AFX_NEWGAMEDLG_H__CEFCDE83_32F2_41CA_A087_070499127128__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// NewGameDlg.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CSetDlg dialog 
 
class CSetDlg : public CDialog 
{ 
// Construction 
public: 
	CSetDlg(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CSetDlg) 
	enum { IDD = IDD_SET }; 
	CButton	m_btnOk; 
	CButton	m_btnCancel; 
	CListBox	m_listSearchEngine; 
	CSpinButtonCtrl	m_SetPly; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CSetDlg) 
	public: 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
public: 
	int GetSelectedEngine(){return m_nSelectedEngine;};//取用户选中的搜索引擎号码 
	int GetSelectedPly(){return m_nSelectedPly;};      //取用户选中的搜索深度 
	int GetUserChessColor(){return m_nUserChessColor;};//取用户选中的棋子颜色 
	int GetChessSort(){return m_nChessSort;};          //取下棋方式 
	int GetDepthSort(){return m_iDepthSort;};          //取选择深度方式 
 
protected: 
	CString m_strTip;     //提示信息 
	int m_nSelectedEngine;//记录用户选择的引擎 
	int m_nSelectedPly;   //记录用户选择的搜索层数 
	int m_nUserChessColor;//用户棋子颜色 
	int m_nChessSort;     //下棋方式 
	int m_iDepthSort;     //深度方式 
 
// Implementation 
protected: 
	HICON m_hSetIcon; 
	CToolTipCtrl m_tooltip; 
	CBitmap m_bitmapOk,m_bitmapCancel; 
 
	// Generated message map functions 
	//{{AFX_MSG(CSetDlg) 
	virtual void OnOK(); 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnRadioblackchess(); 
	afx_msg void OnRadioredchess(); 
	afx_msg void OnDblclkListengine(); 
	afx_msg void OnRadiopc(); 
	afx_msg void OnRadiocc(); 
	afx_msg void OnRadiopp(); 
	afx_msg void OnRadiohash(); 
	afx_msg void OnSelchangeListengine(); 
	afx_msg void OnRadioDefaultset(); 
	afx_msg void OnRadioUserdefine(); 
	afx_msg void OnDoubleclickedRadiopc(); 
	afx_msg void OnDoubleclickedRadiocc(); 
	afx_msg void OnDoubleclickedRadiopp(); 
	afx_msg void OnDoubleclickedRadiohash(); 
	afx_msg void OnDoubleclickedRadioredchess(); 
	afx_msg void OnDoubleclickedRadioblackchess(); 
	afx_msg void OnDoubleclickedRadioDefaultset(); 
	afx_msg void OnDoubleclickedRadioUserdefine(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_NEWGAMEDLG_H__CEFCDE83_32F2_41CA_A087_070499127128__INCLUDED_)