SettingDlg.cpp
上传用户:goak128
上传日期:2013-07-17
资源大小:155k
文件大小:1k
- // SettingDlg.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "Platform.h"
- #include "SettingDlg.h"
- #include ".settingdlg.h"
- // CSettingDlg 对话框
- IMPLEMENT_DYNAMIC(CSettingDlg, CDialog)
- CSettingDlg::CSettingDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CSettingDlg::IDD, pParent)
- , m_nFrameSize(0)
- , m_fYMetrics(0)
- , m_fXMetrics(0)
- , m_nPrecision(0)
- , m_nZoomStep(0)
- {
- // 设定默认显示参数
- this->m_nFrameSize = SETTING_FRAME_SIZE;
- this->m_fXMetrics = SETTING_XMETRICS;
- this->m_fYMetrics = SETTING_YMETRICS;
- this->m_nPrecision = SETTING_PRECISION;
- this->m_nZoomStep = SETTING_ZOOMSTEP;
- }
- CSettingDlg::~CSettingDlg()
- {
- }
- void CSettingDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Text(pDX, IDC_SETTING_FRAME_SIZE, m_nFrameSize);
- DDX_Text(pDX, IDC_SETTING_YMETRICS, m_fYMetrics);
- DDX_Text(pDX, IDC_SETTING_XMETRICS, m_fXMetrics);
- DDX_Text(pDX, IDC_SETTING_PRECISION, m_nPrecision);
- DDX_Text(pDX, IDC_SETTING_ZOOMSTEP, m_nZoomStep);
- }
- BEGIN_MESSAGE_MAP(CSettingDlg, CDialog)
- ON_BN_CLICKED(IDOK, OnBnClickedOk)
- END_MESSAGE_MAP()
- // CSettingDlg 消息处理程序
- void CSettingDlg::OnBnClickedOk()
- {
- // TODO: 在此添加控件通知处理程序代码
- OnOK();
- }