www.pudn.com > GeoExpert-6-1.rar > InfoDlg.cpp


// InfoDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "geoexpert.h" 
#include "InfoDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CInfoDlg dialog 
 
 
CInfoDlg::CInfoDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CInfoDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CInfoDlg) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CInfoDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CInfoDlg) 
	DDX_Control(pDX, IDC_LIST, m_ctrlInfoList); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CInfoDlg, CDialog) 
	//{{AFX_MSG_MAP(CInfoDlg) 
	ON_WM_CLOSE() 
	ON_WM_DESTROY() 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CInfoDlg message handlers 
 
BOOL CInfoDlg::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
	// TODO: Add extra initialization here 
 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
} 
 
void CInfoDlg::OnInitDlg() 
{ 
	m_ctrlInfoList.SetExtendedStyle( LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES ); 
	m_ctrlInfoList.InsertColumn (0,"×Ö¶ÎÃû",LVCFMT_LEFT, 80 ); 
	m_ctrlInfoList.InsertColumn (1,"×Ö¶ÎÖµ",LVCFMT_LEFT, 150 ); 
} 
 
void CInfoDlg::OnClose()  
{ 
	// TODO: Add your message handler code here and/or call default 
	m_ctrlMapX.SetCurrentTool(miArrowTool); 
	CDialog::OnClose(); 
	DestroyWindow(); 
} 
 
void CInfoDlg::OnDestroy()  
{ 
	CDialog::OnDestroy(); 
	 
	// TODO: Add your message handler code here 
	m_bInfoDlg = FALSE; 
 
	delete this; 
}