aoedlg.cpp

来自「采用Dijkstra算法和Floyd算法实现的简单医院选址系统」· C++ 代码 · 共 73 行

CPP
73
字号
// AoeDlg.cpp : implementation file
//

#include "stdafx.h"
#include "yyxz.h"
#include "AoeDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAoeDlg dialog


CAoeDlg::CAoeDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CAoeDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAoeDlg)
	m_projectnum = 0;
	m_activenum = 0;
	//}}AFX_DATA_INIT
}


void CAoeDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAoeDlg)
	DDX_Text(pDX, IDC_EDIT_AOEVEX, m_projectnum);
	DDX_Text(pDX, IDC_EDIT_AOEARC, m_activenum);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAoeDlg, CDialog)
	//{{AFX_MSG_MAP(CAoeDlg)
	ON_BN_CLICKED(IDC_BUTTON_AOEOK, OnButtonAoeok)
	ON_BN_CLICKED(IDC_BUTTON_AOECNL, OnButtonAoecnl)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAoeDlg message handlers

void CAoeDlg::OnButtonAoeok() 
{
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	if(m_activenum==0||m_projectnum==0)
	{
		MessageBox("信息没有输入完全!");
	}
	else
	{
		m_pALDlg=new CAoelrDlg;
		m_pALDlg->Create(IDD_AOELR_DIALOG,this);
		m_pALDlg->m_activenumber=m_activenum;
		m_pALDlg->m_projectnumber=m_projectnum;
		CDialog::OnCancel();
		m_pALDlg->ShowWindow(SW_SHOW);
	}
}

void CAoeDlg::OnButtonAoecnl() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
	GetParent()->ShowWindow(SW_SHOW);	
}

⌨️ 快捷键说明

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