setpardialog.cpp

来自「双蚁群算法实现机器人路径规划」· C++ 代码 · 共 66 行

CPP
66
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?