www.pudn.com > ga-tsp.rar > ResultDlg.cpp


// ResultDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "China45.h" 
#include "ResultDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CResultDlg dialog 
 
 
CResultDlg::CResultDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CResultDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CResultDlg) 
	m_Result = _T(""); 
	//}}AFX_DATA_INIT 
} 
 
 
void CResultDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CResultDlg) 
	DDX_Text(pDX, IDC_EDIT1, m_Result); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CResultDlg, CDialog) 
	//{{AFX_MSG_MAP(CResultDlg) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CResultDlg message handlers 
 
void CResultDlg::SetResult(CString txt) 
{ 
	//AfxMessageBox(txt); 
	m_Result=txt; 
	//UpdateData(true); 
} 
 
BOOL CResultDlg::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)  
{ 
	// TODO: Add your specialized code here and/or call the base class 
	//UpdateData(true); 
	 
	return CDialog::Create(IDD, pParentWnd); 
} 
 
int CResultDlg::DoModal()  
{ 
	// TODO: Add your specialized code here and/or call the base class 
	//UpdateData(true); 
	return CDialog::DoModal(); 
}