Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

36 lines
848 B
C++

#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);
}