dialogmn.cpp

来自「BFS、DFS、有向图、无向图中的各种算法的实现」· C++ 代码 · 共 97 行

CPP
97
字号
// DialogMN.cpp : implementation file
//

#include "stdafx.h"
#include "graph.h"
#include "DialogMN.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialogMN dialog


CDialogMN::CDialogMN(CWnd* pParent /*=NULL*/)
	: CDialog(CDialogMN::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialogMN)
	m_strSName = _T("");
	m_strEName = _T("");
	//}}AFX_DATA_INIT
}


void CDialogMN::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialogMN)
	DDX_Text(pDX, IDC_EDIT1, m_strSName);
	DDX_Text(pDX, IDC_EDIT2, m_strEName);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialogMN, CDialog)
	//{{AFX_MSG_MAP(CDialogMN)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogMN message handlers
/////////////////////////////////////////////////////////////////////////////
// CDialogMP dialog


CDialogMP::CDialogMP(CWnd* pParent /*=NULL*/)
	: CDialog(CDialogMP::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialogMP)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDialogMP::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialogMP)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialogMP, CDialog)
	//{{AFX_MSG_MAP(CDialogMP)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogMP message handlers

void CDialogMN::OnButton1() 
{
	CDialog::OnOK();	
}

void CDialogMP::OnButton1() 
{
	CDialog::OnOK();	
}

BOOL CDialogMP::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CListCtrl* plist = (CListCtrl*)GetDlgItem(IDC_LIST2);
	plist->InsertColumn(0,"结点顺序",LVCFMT_LEFT,80,0);
	plist->InsertColumn(1,"结点名",LVCFMT_LEFT,100,1);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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