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.

81 lines
2.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: CNumber.h
  7. //
  8. // Contents: definition of CConfigNumber
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_CNUMBER_H__7F9B3B37_ECEB_11D0_9C6E_00C04FB6C6FA__INCLUDED_)
  12. #define AFX_CNUMBER_H__7F9B3B37_ECEB_11D0_9C6E_00C04FB6C6FA__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. #include "attr.h"
  17. #include "ddwarn.h"
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CConfigNumber dialog
  20. class CConfigNumber : public CAttribute
  21. {
  22. // Construction
  23. public:
  24. CConfigNumber(UINT nTemplateID); // standard constructor
  25. // Dialog Data
  26. //{{AFX_DATA(CConfigNumber)
  27. enum { IDD = IDD_CONFIG_NUMBER };
  28. CSpinButtonCtrl m_SpinValue;
  29. CString m_strUnits;
  30. CString m_strValue;
  31. CString m_strStatic;
  32. CString m_strError;
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CConfigNumber)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. protected:
  42. int m_cMinutes;
  43. long m_nLow;
  44. long m_nHigh;
  45. DWORD_PTR m_nSave;
  46. int m_iNeverId;
  47. int m_iAccRate;
  48. int m_iStaticId;
  49. CDlgDependencyWarn DDWarn;
  50. // Generated message map functions
  51. //{{AFX_MSG(CConfigNumber)
  52. afx_msg void OnKillFocus();
  53. afx_msg void OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult);
  54. afx_msg void OnConfigure();
  55. virtual BOOL OnInitDialog();
  56. virtual BOOL OnKillActive();
  57. virtual BOOL OnApply();
  58. afx_msg void OnUpdateValue();
  59. //}}AFX_MSG
  60. DECLARE_MESSAGE_MAP()
  61. public:
  62. virtual void Initialize(CResult *pResult);
  63. virtual void SetInitialValue(DWORD_PTR dw);
  64. LONG CurrentEditValue();
  65. void SetValueToEdit(LONG lVal);
  66. };
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  69. #endif // !defined(AFX_CNUMBER_H__7F9B3B37_ECEB_11D0_9C6E_00C04FB6C6FA__INCLUDED_)