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

📄 setpardialog.cpp

📁 双蚁群算法实现机器人路径规划
💻 CPP
字号:
// SetParDialog.cpp : implementation file
//

#include "stdafx.h"
#include "AntColony.h"
#include "SetParDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// SetParDialog dialog


SetParDialog::SetParDialog(CWnd* pParent /*=NULL*/)
	: CDialog(SetParDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(SetParDialog)
	m_gener = 0;
	m_beta = 0.0;
	m_alpha = 0.0;
	//}}AFX_DATA_INIT
}


void SetParDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(SetParDialog)
	DDX_Text(pDX, IDC_EDIT1, m_gener);
	DDV_MinMaxInt(pDX, m_gener, 1, 10000);
	DDX_Text(pDX, IDC_EDIT2, m_beta);
	DDV_MinMaxDouble(pDX, m_beta, 0., 20.);
	DDX_Text(pDX, IDC_EDIT3, m_alpha);
	DDV_MinMaxDouble(pDX, m_alpha, 0., 20.);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(SetParDialog, CDialog)
	//{{AFX_MSG_MAP(SetParDialog)
	ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
	ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// SetParDialog message handlers

void SetParDialog::OnButton3() 
{
	// TODO: Add your control notification handler code here
	ShellExecute(NULL,_T("open"),"iexplore.exe","http://hi.baidu.com/lrxxz",NULL,SW_SHOW); 

}

void SetParDialog::OnButton4() 
{
	// TODO: Add your control notification handler code here

ShellExecute(NULL,_T("open"),"iexplore.exe","http://blog.sina.com.cn/wakor",NULL,SW_SHOW);
}

⌨️ 快捷键说明

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