RectpropDlg.cpp
上传用户:ywlong9188
上传日期:2022-05-31
资源大小:2656k
文件大小:2k
- // RectpropDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "Proj.h"
- #include "ColorStatic.h"
- #include "RectpropDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CRectpropDlg dialog
- CRectpropDlg::CRectpropDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CRectpropDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CRectpropDlg)
- m_bPen = TRUE;
- m_nDeep = 0;
- m_nStyle = -1;
- m_name = _T("");
- //}}AFX_DATA_INIT
- }
- void CRectpropDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CRectpropDlg)
- DDX_Check(pDX, IDC_CHECK1, m_bPen);
- DDX_Text(pDX, IDC_EDIT1, m_nDeep);
- DDV_MinMaxInt(pDX, m_nDeep, 1, 32);
- DDX_Radio(pDX, IDC_STYLE_NORMAL, m_nStyle);
- DDX_Text(pDX, IDC_RECT_NAME, m_name);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CRectpropDlg, CDialog)
- //{{AFX_MSG_MAP(CRectpropDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CRectpropDlg message handlers
- BOOL CRectpropDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- m_line.SubclassDlgItem(IDC_COLOR_LINE,this);
- m_face.SubclassDlgItem(IDC_COLOR_FACE,this);
- m_highLight.SubclassDlgItem(IDC_COLOR_HIGHLIGHT,this);
- m_shadow.SubclassDlgItem(IDC_COLOR_SHADOW,this);
-
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }