www.pudn.com > Geotest.rar > Distance.cpp


// Distance.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "geotest.h" 
#include "Distance.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CDistance dialog 
 
 
CDistance::CDistance(CWnd* pParent /*=NULL*/) 
	: CDialog(CDistance::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CDistance) 
	m_distance = 0.0; 
	//}}AFX_DATA_INIT 
	m_pMapX=NULL; 
	m_pView=NULL; 
} 
 
CDistance::CDistance(CMapX *pMapX,CWnd* pParent /*=NULL*/) 
	: CDialog(CDistance::IDD, pParent) 
{ 
	 
	m_distance = 0.0; 
	m_pMapX = pMapX; 
	m_pView=NULL; 
} 
CDistance::CDistance(CMapX *pMapX,CView *pView) 
	: CDialog(CDistance::IDD) 
{ 
	m_distance = 0.0; 
	m_pMapX = pMapX; 
	m_pView=pView; 
} 
 
 
 
void CDistance::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CDistance) 
	DDX_Text(pDX, IDC_DISTANCE, m_distance); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CDistance, CDialog) 
	//{{AFX_MSG_MAP(CDistance) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDistance message handlers 
/*BOOL CDistance::CreateDlg() 
{ 
	return CDialog::Create(IDD_DATASET); 
}*/