📄 dialoginput.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -