TimeSet.h
上传用户:fzchengxin
上传日期:2013-10-17
资源大小:2070k
文件大小:2k
源码类别:

Windows编程

开发平台:

Visual C++

  1. #if !defined(AFX_TIMESET_H__F4855923_4F4C_43C9_9F6E_E916EA103B2E__INCLUDED_)
  2. #define AFX_TIMESET_H__F4855923_4F4C_43C9_9F6E_E916EA103B2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // TimeSet.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CTimeSet dialog
  10. class CTimeSet : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CTimeSet(CWnd* pParent = NULL);   // standard constructor
  15. // Dialog Data
  16. //{{AFX_DATA(CTimeSet)
  17. enum { IDD = IDD_DIALOG_SET };
  18. int m_nHisTime;
  19. int m_nRefTime;
  20. //}}AFX_DATA
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CTimeSet)
  24. protected:
  25. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  26. //}}AFX_VIRTUAL
  27. // Implementation
  28. protected:
  29. // Generated message map functions
  30. //{{AFX_MSG(CTimeSet)
  31. // NOTE: the ClassWizard will add member functions here
  32. //}}AFX_MSG
  33. DECLARE_MESSAGE_MAP()
  34. };
  35. //{{AFX_INSERT_LOCATION}}
  36. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CTimeSet dialog
  39. /*
  40. // TimeSet.cpp : implementation file
  41. #include "stdafx.h"
  42. #include "ccams.h"
  43. #include "TimeSet.h"
  44. #ifdef _DEBUG
  45. #define new DEBUG_NEW
  46. #undef THIS_FILE
  47. static char THIS_FILE[] = __FILE__;
  48. #endif
  49. */
  50. CTimeSet::CTimeSet(CWnd* pParent /*=NULL*/)
  51. : CDialog(CTimeSet::IDD, pParent)
  52. {
  53. //{{AFX_DATA_INIT(CTimeSet)
  54. m_nHisTime = 0;
  55. m_nRefTime = 0;
  56. //}}AFX_DATA_INIT
  57. }
  58. void CTimeSet::DoDataExchange(CDataExchange* pDX)
  59. {
  60. CDialog::DoDataExchange(pDX);
  61. //{{AFX_DATA_MAP(CTimeSet)
  62. DDX_Text(pDX, IDC_EDIT_HISTIME, m_nHisTime);
  63. DDV_MinMaxInt(pDX, m_nHisTime, 10, 120);
  64. DDX_Text(pDX, IDC_EDIT_REFRESHTIME, m_nRefTime);
  65. DDV_MinMaxInt(pDX, m_nRefTime, 0, 30);
  66. //}}AFX_DATA_MAP
  67. }
  68. BEGIN_MESSAGE_MAP(CTimeSet, CDialog)
  69. //{{AFX_MSG_MAP(CTimeSet)
  70. // NOTE: the ClassWizard will add message map macros here
  71. //}}AFX_MSG_MAP
  72. END_MESSAGE_MAP()
  73. /////////////////////////////////////////////////////////////////////////////
  74. // CTimeSet message handlers
  75. #endif // !defined(AFX_TIMESET_H__F4855923_4F4C_43C9_9F6E_E916EA103B2E__INCLUDED_)