www.pudn.com > GpsTracker2.rar > Odb2Dlg.cpp


// Odb2Dlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "GpsTracker.h" 
#include "Odb2Dlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// COdb2Dlg dialog 
 
 
COdb2Dlg::COdb2Dlg(CWnd* pParent /*=NULL*/) 
	: CDialog(COdb2Dlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(COdb2Dlg) 
	m_strOdb2Content = _T(""); 
	//}}AFX_DATA_INIT 
} 
 
 
void COdb2Dlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(COdb2Dlg) 
	DDX_Text(pDX, IDC_EDIT_ODB2, m_strOdb2Content); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(COdb2Dlg, CDialog) 
	//{{AFX_MSG_MAP(COdb2Dlg) 
	ON_BN_CLICKED(IDC_BUTTON_EXIT, OnButtonExit) 
	ON_WM_TIMER() 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// COdb2Dlg message handlers 
 
void COdb2Dlg::OnButtonExit()  
{ 
	// TODO: Add your control notification handler code here 
	KillTimer(m_nTimer); 
 
    DestroyWindow(); 
	 
	 
} 
 
BOOL COdb2Dlg::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
	// TODO: Add extra initialization here 
	m_nTimer=SetTimer(1,500,NULL); 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
} 
 
void COdb2Dlg::OnTimer(UINT nIDEvent)  
{ 
	// TODO: Add your message handler code here and/or call default 
     
	UpdateData(false); 
	CDialog::OnTimer(nIDEvent); 
}