setobsdia.cpp

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

CPP
60
字号
// SETOBSDIA.cpp : implementation file
//

#include "stdafx.h"
#include "AntColony.h"
#include "SETOBSDIA.h"

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

/////////////////////////////////////////////////////////////////////////////
// SETOBSDIA dialog


SETOBSDIA::SETOBSDIA(CWnd* pParent /*=NULL*/)
	: CDialog(SETOBSDIA::IDD, pParent)
{
	//{{AFX_DATA_INIT(SETOBSDIA)
	m_AUTOSETOBS = 0.0;
	//}}AFX_DATA_INIT
}


void SETOBSDIA::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(SETOBSDIA)
	DDX_Text(pDX, IDC_EDIT1, m_AUTOSETOBS);
	DDV_MinMaxDouble(pDX, m_AUTOSETOBS, 1.e-003, 90.);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(SETOBSDIA, CDialog)
	//{{AFX_MSG_MAP(SETOBSDIA)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// SETOBSDIA message handlers

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

}

void SETOBSDIA::OnButton2() 
{
	// 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 + -
显示快捷键?