#include "stdafx.h" #include "EditWellLayingDepthDlg.h" CEditWellLayingDepthDlg::CEditWellLayingDepthDlg(CWnd* pParent /*=NULL*/) : CDialog(CEditWellLayingDepthDlg::IDD, pParent) { //{{AFX_DATA_INIT(CEditWellLayingDepthDlg) m_strWndEdtLayingDepth = _T(""); //}}AFX_DATA_INIT } void CEditWellLayingDepthDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CEditWellLayingDepthDlg) DDX_Text(pDX, IDC_EDIT_LAYINGDEPTH, m_strWndEdtLayingDepth); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CEditWellLayingDepthDlg, CDialog) //{{AFX_MSG_MAP(CEditWellLayingDepthDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() void CEditWellLayingDepthDlg::SetLayingDepth(double dVal) { m_strWndEdtLayingDepth.Format(_T("%.3f"), dVal); } double CEditWellLayingDepthDlg::GetLayingDepth() { return _tstof(m_strWndEdtLayingDepth); }