55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
#include "stdafx.h"
|
|
#include "JDZBDlg.h"
|
|
#include "UITools.h"
|
|
|
|
IMPLEMENT_DYNAMIC(CJDZBDlg, CDialog)
|
|
|
|
CJDZBDlg::CJDZBDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(IDD_JDZB_Dlg, pParent)
|
|
, m_leaderL(10)
|
|
, m_style(_T("Pipe_Dim"))
|
|
, m_textH(1)
|
|
, m_iSide(0)
|
|
, m_bByCenterLine(FALSE)
|
|
{
|
|
UIDataCache::Read(_T("%d%d%s%i%i"), _T("CJDZBDlg"), &m_leaderL, &m_textH, &m_style, &m_iSide, &m_bByCenterLine);
|
|
}
|
|
|
|
CJDZBDlg::~CJDZBDlg() { }
|
|
|
|
void CJDZBDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
DDX_Text(pDX, IDC_EDIT1, m_leaderL);
|
|
DDV_MinMaxDouble(pDX, m_leaderL, 0.01, 999999.);
|
|
|
|
DDX_Control(pDX, IDC_COMBO2, m_cmbTextStyle);
|
|
DDX_CBString(pDX, IDC_COMBO2, m_style);
|
|
|
|
DDX_Text(pDX, IDC_EDIT2, m_textH);
|
|
DDV_MinMaxDouble(pDX, m_textH, 0.0001, 99999.);
|
|
DDX_Radio(pDX, IDC_RADIO1, m_iSide);
|
|
DDX_Radio(pDX, IDC_RADIO3, m_bByCenterLine);
|
|
}
|
|
|
|
BOOL CJDZBDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
m_cmbTextStyle.init();
|
|
UpdateData(FALSE);
|
|
return TRUE;
|
|
}
|
|
|
|
BEGIN_MESSAGE_MAP(CJDZBDlg, CDialog)
|
|
ON_BN_CLICKED(IDOK, &CJDZBDlg::OnBnClickedOk)
|
|
END_MESSAGE_MAP()
|
|
|
|
void CJDZBDlg::OnBnClickedOk()
|
|
{
|
|
UpdateData(TRUE);
|
|
|
|
UIDataCache::Write(_T("%d%d%s%i%i"), _T("CJDZBDlg"), &m_leaderL, &m_textH, &m_style, &m_iSide, &m_bByCenterLine);
|
|
|
|
CDialog::OnOK();
|
|
}
|