www.pudn.com > Digihelper.rar > qlgcDlg.cpp
// qlgcDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Digihelper.h"
#include "qlgcDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CqlgcDlg dialog
CqlgcDlg::CqlgcDlg(CWnd* pParent /*=NULL*/)
: CDialog(CqlgcDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CqlgcDlg)
m_qlgch = 0.0;
m_qlgcs = 0.0;
//}}AFX_DATA_INIT
}
void CqlgcDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CqlgcDlg)
DDX_Text(pDX, IDC_qlgch, m_qlgch);
DDX_Text(pDX, IDC_qlgcs, m_qlgcs);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CqlgcDlg, CDialog)
//{{AFX_MSG_MAP(CqlgcDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CqlgcDlg message handlers
void CqlgcDlg::OnOK()
{
// TODO: Add extra validation here
UpdateData(TRUE);
m_qlgch=(m_qlgcs*m_qlgcs)/(2*6371000);
UpdateData(FALSE);
}