44 lines
802 B
C++
44 lines
802 B
C++
#include "stdafx.h"
|
|
#include "4JSTdlg.h"
|
|
#include "CoreTools.h"
|
|
|
|
IMPLEMENT_DYNAMIC(C4JSTDlg, CDialog)
|
|
|
|
C4JSTDlg::C4JSTDlg(CWnd* pParent /*=nullptr*/)
|
|
: CDialog(IDD_4ANGLE_DLG, pParent)
|
|
, m_dC(0)
|
|
, m_nMode(0)
|
|
{
|
|
GET_CACHE(C4JSTDlg, %f%d, &m_dC, &m_nMode);
|
|
}
|
|
|
|
C4JSTDlg::~C4JSTDlg()
|
|
{
|
|
}
|
|
|
|
void C4JSTDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
DDX_Text(pDX, IDC_EDIT1, m_dC);
|
|
DDV_MinMaxDouble(pDX, m_dC, 0.1, 1000000);
|
|
DDX_Radio(pDX, IDC_RADIO1, m_nMode);
|
|
}
|
|
|
|
BOOL C4JSTDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
UpdateData(FALSE);
|
|
return 0;
|
|
}
|
|
|
|
BEGIN_MESSAGE_MAP(C4JSTDlg, CDialog)
|
|
ON_BN_CLICKED(IDOK, &C4JSTDlg::OnBnClickedOk)
|
|
END_MESSAGE_MAP()
|
|
|
|
void C4JSTDlg::OnBnClickedOk()
|
|
{
|
|
UpdateData(TRUE);
|
|
SET_CACHE(C4JSTDlg, %f%d, m_dC, m_nMode);
|
|
CDialog::OnOK();
|
|
}
|