inputdialog.cpp

来自「基于A算法的航路规划算法源码」· C++ 代码 · 共 51 行

CPP
51
字号
// inputdialog.cpp : implementation file
//

#include "stdafx.h"
#include "航路规划.h"
#include "inputdialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// inputdialog dialog


inputdialog::inputdialog(CWnd* pParent /*=NULL*/)
	: CDialog(inputdialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(inputdialog)
	x = 0;
	y = 0;
	r = 0;
	//}}AFX_DATA_INIT
}


void inputdialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(inputdialog)
	DDX_Control(pDX, IDC_ED, m_ed);
	DDX_Text(pDX, coordinate_x, x);
	DDV_MinMaxInt(pDX, x, 0, 800);
	DDX_Text(pDX, coordinate_y, y);
	DDV_MinMaxInt(pDX, y, 0, 600);
	DDX_Text(pDX, radius, r);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(inputdialog, CDialog)
	//{{AFX_MSG_MAP(inputdialog)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// inputdialog message handlers

⌨️ 快捷键说明

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