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

52 lines
920 B
C++

#include "stdafx.h"
#include "YXSTDlg.h"
IMPLEMENT_DYNAMIC(CYXSTDlg, CDialog)
CYXSTDlg::CYXSTDlg(CWnd* pParent /*=nullptr*/)
: CDialog(IDD_YXST_DLG, pParent)
, m_nMode(0)
, m_dL(0)
{
GET_CACHE(CYXSTDlg, %f%d, &m_dL, &m_nMode);
}
CYXSTDlg::~CYXSTDlg()
{
}
void CYXSTDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Radio(pDX, IDC_RADIO1, m_nMode);
DDX_Text(pDX, IDC_EDIT3, m_dL);
DDV_MinMaxDouble(pDX, m_dL, .01, 10000000);
}
BOOL CYXSTDlg::OnInitDialog()
{
CDialog::OnInitDialog();
UpdateData(FALSE);
return TRUE;
}
BEGIN_MESSAGE_MAP(CYXSTDlg, CDialog)
ON_BN_CLICKED(IDC_BUTTON1, &CYXSTDlg::OnBnClickedButton1)
ON_BN_CLICKED(IDOK, &CYXSTDlg::OnBnClickedOk)
END_MESSAGE_MAP()
void CYXSTDlg::OnBnClickedButton1()
{
UpdateData(TRUE);
CDialog::OnOK();
}
void CYXSTDlg::OnBnClickedOk()
{
UpdateData(TRUE);
SET_CACHE(CYXSTDlg, %f%d, m_dL, m_nMode);
CDialog::OnOK();
}