TimeSet.h
上传用户:fzchengxin
上传日期:2013-10-17
资源大小:2070k
文件大小:2k
- #if !defined(AFX_TIMESET_H__F4855923_4F4C_43C9_9F6E_E916EA103B2E__INCLUDED_)
- #define AFX_TIMESET_H__F4855923_4F4C_43C9_9F6E_E916EA103B2E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // TimeSet.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CTimeSet dialog
- class CTimeSet : public CDialog
- {
- // Construction
- public:
- CTimeSet(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CTimeSet)
- enum { IDD = IDD_DIALOG_SET };
- int m_nHisTime;
- int m_nRefTime;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTimeSet)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CTimeSet)
- // NOTE: the ClassWizard will add member functions here
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- /////////////////////////////////////////////////////////////////////////////
- // CTimeSet dialog
- /*
- // TimeSet.cpp : implementation file
- #include "stdafx.h"
- #include "ccams.h"
- #include "TimeSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- */
- CTimeSet::CTimeSet(CWnd* pParent /*=NULL*/)
- : CDialog(CTimeSet::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CTimeSet)
- m_nHisTime = 0;
- m_nRefTime = 0;
- //}}AFX_DATA_INIT
- }
- void CTimeSet::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CTimeSet)
- DDX_Text(pDX, IDC_EDIT_HISTIME, m_nHisTime);
- DDV_MinMaxInt(pDX, m_nHisTime, 10, 120);
- DDX_Text(pDX, IDC_EDIT_REFRESHTIME, m_nRefTime);
- DDV_MinMaxInt(pDX, m_nRefTime, 0, 30);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CTimeSet, CDialog)
- //{{AFX_MSG_MAP(CTimeSet)
- // NOTE: the ClassWizard will add message map macros here
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CTimeSet message handlers
- #endif // !defined(AFX_TIMESET_H__F4855923_4F4C_43C9_9F6E_E916EA103B2E__INCLUDED_)