SetTime.h
上传用户:kklily621
上传日期:2013-06-25
资源大小:252k
文件大小:2k
开发平台:

Visual C++

  1. #if !defined(AFX_SETTIME_H__F665A087_09C3_42F0_9222_955BA6545AA6__INCLUDED_)
  2. #define AFX_SETTIME_H__F665A087_09C3_42F0_9222_955BA6545AA6__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SetTime.h : header file
  7. //
  8. //=============================================================================================
  9. // CSetTime dialog
  10. class CSetTime : public CPropertyPage
  11. {
  12. DECLARE_DYNCREATE(CSetTime)
  13. // Construction
  14. public:
  15. CSetTime();
  16. ~CSetTime();
  17. // Dialog Data
  18. //{{AFX_DATA(CSetTime)
  19. enum { IDD = IDD_SET_TIME };
  20. CButton m_Check3;
  21. CButton m_Check2;
  22. CButton m_Check4;
  23. CButton m_Check0;
  24. CButton m_Check6;
  25. CButton m_Check1;
  26. CDateTimeCtrl m_TimeStart;
  27. CDateTimeCtrl m_TimeEnd;
  28. CButton m_Check5;
  29. CTreeCtrl m_TreeSetTime;
  30. //}}AFX_DATA
  31. // Overrides
  32. // ClassWizard generate virtual function overrides
  33. //{{AFX_VIRTUAL(CSetTime)
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. protected:
  39. // Generated message map functions
  40. //{{AFX_MSG(CSetTime)
  41. virtual BOOL OnInitDialog();
  42. afx_msg void OnSelchangedSetTimeTree(NMHDR* pNMHDR, LRESULT* pResult);
  43. afx_msg void OnSetTimeCheckSunday();
  44. afx_msg void OnSetTimeCheckMonday();
  45. afx_msg void OnSetTimeCheckTuesday();
  46. afx_msg void OnSetTimeCheckThursday();
  47. afx_msg void OnSetTimeCheckSaturday();
  48. afx_msg void OnSetTimeCheckFriday();
  49. afx_msg void OnDatetimechangeSetTimeTimeEnd(NMHDR* pNMHDR, LRESULT* pResult);
  50. afx_msg void OnDatetimechangeSetTimeTimeStart(NMHDR* pNMHDR, LRESULT* pResult);
  51. afx_msg void OnSetTimeCheckWednesday();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. //---------------------------------------------------------------------------------------------
  55. //owner declare
  56. public:
  57. void InitDlgResource ();
  58. int TextToIndex (CString sText);
  59. int EnableButton (BOOL bEnable);
  60. int SelectTreeItemOperate();
  61. int SetValue (void* acltime);
  62. int SetAclValue (int iIndex,BOOL isTrue);
  63. int SetTimeValue (int iType);
  64. int SelectTreeItem (CString sText);
  65. public:
  66. int m_iTreeIndex;
  67. CString m_TreeText;
  68. };
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  71. #endif // !defined(AFX_SETTIME_H__F665A087_09C3_42F0_9222_955BA6545AA6__INCLUDED_)