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

📄 dlgsearchspeed.cpp

📁 用vc++写的迷宫基于图形的算法,可以自己编辑地图,并具有保存地图的功能
💻 CPP
字号:
// DlgSearchSpeed.cpp : implementation file
//

#include "stdafx.h"
#include "resource.h"
#include "DlgSearchSpeed.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgSearchSpeed dialog


CDlgSearchSpeed::CDlgSearchSpeed(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgSearchSpeed::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgSearchSpeed)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	m_SpeedValue=1000;
}


void CDlgSearchSpeed::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgSearchSpeed)
	DDX_Control(pDX, IDC_SLIDER1, m_SearchSpeed);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgSearchSpeed, CDialog)
	//{{AFX_MSG_MAP(CDlgSearchSpeed)
	ON_NOTIFY(NM_RELEASEDCAPTURE, IDC_SLIDER1, OnReleasedcaptureSlider1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgSearchSpeed message handlers

void CDlgSearchSpeed::OnReleasedcaptureSlider1(NMHDR* pNMHDR, LRESULT* pResult) 
{
	// TODO: Add your control notification handler code here
   m_SpeedValue=m_SearchSpeed.GetPos();
	*pResult = 0;
}

BOOL CDlgSearchSpeed::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_SearchSpeed.SetRange(1000,1500);
	m_SearchSpeed.SetTicFreq(100);
	m_SearchSpeed.SetPos(1250);
	m_SearchSpeed.SetLineSize(100);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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