dialoginput.cpp

来自「数据结构的经典实验程序。以全国主要城市为图的顶点, 铁路连接为图的边, 距离作为」· C++ 代码 · 共 64 行

CPP
64
字号
// Dialoginput.cpp : implementation file
//

#include "stdafx.h"
#include "Dijkstra_TA.h"
#include "Dialoginput.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialoginput dialog


CDialoginput::CDialoginput(CWnd* pParent /*=NULL*/)
	: CDialog(CDialoginput::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialoginput)
	m_startcity = _T("");
	m_goalcity = _T("");
	//}}AFX_DATA_INIT
}


void CDialoginput::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialoginput)
	DDX_Text(pDX, IDC_EDIT_STARTCITY, m_startcity);
	DDX_Text(pDX, IDC_EDIT_GOALCITY, m_goalcity);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialoginput, CDialog)
	//{{AFX_MSG_MAP(CDialoginput)
	ON_EN_CHANGE(IDC_EDIT_STARTCITY, OnChangeEditStartcity)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialoginput message handlers

void CDialoginput::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(true);
	CDialog::OnOK();
}

void CDialoginput::OnChangeEditStartcity() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	//UpdateData(true);
}

⌨️ 快捷键说明

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