Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.0 KiB

  1. // Wiaeditproprange.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "wiatest.h"
  5. #include "Wiaeditproprange.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CWiaeditproprange dialog
  13. CWiaeditproprange::CWiaeditproprange(CWnd* pParent /*=NULL*/)
  14. : CDialog(CWiaeditproprange::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CWiaeditproprange)
  17. m_szPropertyName = _T("");
  18. m_szPropertyValue = _T("");
  19. m_szPropertyIncValue = _T("");
  20. m_szPropertyMaxValue = _T("");
  21. m_szPropertyMinValue = _T("");
  22. m_szPropertyNomValue = _T("");
  23. //}}AFX_DATA_INIT
  24. }
  25. void CWiaeditproprange::DoDataExchange(CDataExchange* pDX)
  26. {
  27. CDialog::DoDataExchange(pDX);
  28. //{{AFX_DATA_MAP(CWiaeditproprange)
  29. DDX_Text(pDX, IDC_RANGE_PROPERTY_NAME, m_szPropertyName);
  30. DDX_Text(pDX, IDC_RANGE_PROPERTYVALUE_EDITBOX, m_szPropertyValue);
  31. DDX_Text(pDX, RANGE_PROPERTY_INCVALUE, m_szPropertyIncValue);
  32. DDX_Text(pDX, RANGE_PROPERTY_MAXVALUE, m_szPropertyMaxValue);
  33. DDX_Text(pDX, RANGE_PROPERTY_MINVALUE, m_szPropertyMinValue);
  34. DDX_Text(pDX, RANGE_PROPERTY_NOMVALUE, m_szPropertyNomValue);
  35. //}}AFX_DATA_MAP
  36. }
  37. BEGIN_MESSAGE_MAP(CWiaeditproprange, CDialog)
  38. //{{AFX_MSG_MAP(CWiaeditproprange)
  39. // NOTE: the ClassWizard will add message map macros here
  40. //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CWiaeditproprange message handlers
  44. void CWiaeditproprange::SetPropertyName(TCHAR *szPropertyName)
  45. {
  46. m_szPropertyName = szPropertyName;
  47. }
  48. void CWiaeditproprange::SetPropertyValue(TCHAR *szPropertyValue)
  49. {
  50. m_szPropertyValue = szPropertyValue;
  51. }
  52. void CWiaeditproprange::SetPropertyValidValues(PVALID_RANGE_VALUES pValidRangeValues)
  53. {
  54. m_szPropertyMinValue.Format(TEXT("%d"),pValidRangeValues->lMin);
  55. m_szPropertyMaxValue.Format(TEXT("%d"),pValidRangeValues->lMax);
  56. m_szPropertyNomValue.Format(TEXT("%d"),pValidRangeValues->lNom);
  57. m_szPropertyIncValue.Format(TEXT("%d"),pValidRangeValues->lInc);
  58. }