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

📄 setting.cpp

📁 java game uploading now
💻 CPP
字号:
// Setting.cpp : implementation file
//

#include "stdafx.h"
#include "MfcPo.h"
#include "Setting.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSetting dialog


CSetting::CSetting(CWnd* pParent /*=NULL*/)
	: CDialog(CSetting::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetting)
	m_ordermoves = FALSE;
	//}}AFX_DATA_INIT
}


void CSetting::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetting)
	DDX_Control(pDX, IDC_COMBO3, m_perfecsearch);
	DDX_Control(pDX, IDC_COMBO2, m_searchdepth);
	DDX_Control(pDX, IDC_COMBO1, m_searchmethod);
	DDX_Check(pDX, IDC_CHECK1, m_ordermoves);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSetting, CDialog)
	//{{AFX_MSG_MAP(CSetting)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSetting message handlers

BOOL CSetting::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_searchdepth.InsertString(0,"12");
	m_searchdepth.InsertString(0,"11");
	m_searchdepth.InsertString(0,"10");
	m_searchdepth.InsertString(0,"9");
	m_searchdepth.InsertString(0,"8");
	m_searchdepth.InsertString(0,"7");
	m_searchdepth.InsertString(0,"6");
	m_searchdepth.InsertString(0,"5");

	m_perfecsearch.SetCurSel(eg_empty-10);
	m_searchmethod.SetCurSel(searchmethod);
	m_searchdepth.SetCurSel(depth-5);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CSetting::OnOK() 
{
	eg_empty = m_perfecsearch.GetCurSel()+10;
	searchmethod = m_searchmethod.GetCurSel();
	depth = m_searchdepth.GetCurSel()+5;
	CDialog::OnOK();
}

⌨️ 快捷键说明

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