CursorPropDlg.cpp
上传用户:ywlong9188
上传日期:2022-05-31
资源大小:2656k
文件大小:2k
- // CursorPropDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "proj.h"
- #include "colorStatic.h"
- #include "CursorPropDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCursorPropDlg dialog
- CCursorPropDlg::CCursorPropDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CCursorPropDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CCursorPropDlg)
- m_nSeg = 0;
- m_nStyle = -1;
- m_sParam = _T("");
- m_sNumber = _T("");
- m_bCursor = FALSE;
- m_name = _T("");
- m_bRuler = FALSE;
- m_bReverse = FALSE;
- //}}AFX_DATA_INIT
- }
- void CCursorPropDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CCursorPropDlg)
- DDX_Text(pDX, IDC_EDIT2, m_nSeg);
- DDV_MinMaxInt(pDX, m_nSeg, 1, 10);
- DDX_Radio(pDX, IDC_RADIO1, m_nStyle);
- DDX_Text(pDX, IDC_EDIT3, m_sParam);
- DDX_Text(pDX, IDC_EDIT4, m_sNumber);
- DDX_Check(pDX, IDC_CHECK1, m_bCursor);
- DDX_Text(pDX, IDC_CURSOR_NAME, m_name);
- DDX_Check(pDX, IDC_CHECK2, m_bRuler);
- DDX_Check(pDX, IDC_CHECK3, m_bReverse);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CCursorPropDlg, CDialog)
- //{{AFX_MSG_MAP(CCursorPropDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CCursorPropDlg message handlers
- BOOL CCursorPropDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- // TODO: Add extra initialization here
- m_color.SubclassDlgItem(IDC_COLOR,this);
- m_cruler.SubclassDlgItem(IDC_CRULER,this);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }