RectEditDlg.cpp 851 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // RectEditDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "PropGrid.h"
  5. #include "RectEditDlg.h"
  6. // CRectEditDlg dialog
  7. IMPLEMENT_DYNAMIC(CRectEditDlg, CDialog)
  8. CRectEditDlg::CRectEditDlg(CWnd* pParent /*=NULL*/)
  9. : CDialog(CRectEditDlg::IDD, pParent)
  10. , m_left(10)
  11. , m_top(10)
  12. , m_right(10)
  13. , m_bottom(10)
  14. {
  15. }
  16. CRectEditDlg::~CRectEditDlg()
  17. {
  18. }
  19. void CRectEditDlg::DoDataExchange(CDataExchange* pDX)
  20. {
  21. CDialog::DoDataExchange(pDX);
  22. DDX_Text(pDX, IDC_LEFT, m_left);
  23. DDV_MinMaxInt(pDX, m_left, 1, 1000);
  24. DDX_Text(pDX, IDC_TOP, m_top);
  25. DDV_MinMaxInt(pDX, m_top, 1, 1000);
  26. DDX_Text(pDX, IDC_RIGHT, m_right);
  27. DDV_MinMaxInt(pDX, m_right, 1, 1000);
  28. DDX_Text(pDX, IDC_BOTTOM, m_bottom);
  29. DDV_MinMaxInt(pDX, m_bottom, 1, 1000);
  30. }
  31. BEGIN_MESSAGE_MAP(CRectEditDlg, CDialog)
  32. END_MESSAGE_MAP()
  33. // CRectEditDlg message handlers