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.

167 lines
4.5 KiB

  1. //+---------------------------------------------------------------------------
  2. /////////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Microsoft Windows
  5. // Copyright (C) Microsoft Corporation, 1998-2001.
  6. //
  7. // File: SchedDlg.h
  8. //
  9. // Contents: Definition of CConnectionScheduleDlg
  10. //
  11. //----------------------------------------------------------------------------
  12. #if !defined(AFX_SCHEDDLG_H__701CFB37_AEF8_11D1_9864_00C04FB94F17__INCLUDED_)
  13. #define AFX_SCHEDDLG_H__701CFB37_AEF8_11D1_9864_00C04FB94F17__INCLUDED_
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. // SchedDlg.h : header file
  18. //
  19. #include <schedule.h>
  20. #include "SchedBas.h"
  21. #ifndef INOUT
  22. #define INOUT
  23. #define ENDORSE(f) // Macro which is the opposite of ASSERT()
  24. #endif
  25. void ConvertConnectionHoursToGMT(INOUT BYTE rgbData[SCHEDULE_DATA_ENTRIES], IN bool bAddDaylightBias);
  26. void ConvertConnectionHoursFromGMT(INOUT BYTE rgbData[SCHEDULE_DATA_ENTRIES], IN bool bAddDaylightBias);
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CConnectionScheduleDlg dialog
  29. class CConnectionScheduleDlg : public CScheduleBaseDlg
  30. {
  31. // Construction
  32. public:
  33. void SetConnectionByteArray (INOUT BYTE rgbData[SCHEDULE_DATA_ENTRIES]);
  34. CConnectionScheduleDlg(CWnd* pParent); // standard constructor
  35. virtual int GetIDD ()
  36. {
  37. return IDD;
  38. }
  39. // Dialog Data
  40. //{{AFX_DATA(CConnectionScheduleDlg)
  41. enum { IDD = IDD_DS_SCHEDULE };
  42. CButton m_buttonNone;
  43. CButton m_buttonOne;
  44. CButton m_buttonTwo;
  45. CButton m_buttonFour;
  46. //}}AFX_DATA
  47. // Overrides
  48. // ClassWizard generated virtual function overrides
  49. //{{AFX_VIRTUAL(CConnectionScheduleDlg)
  50. public:
  51. virtual void OnFinalRelease();
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57. virtual void TimeChange();
  58. virtual UINT GetExpectedArrayLength();
  59. virtual BYTE GetMatrixPercentage(UINT nHour, UINT nDay);
  60. virtual UINT GetPercentageToSet (const BYTE bData);
  61. virtual void InitMatrix ();
  62. // Generated message map functions
  63. //{{AFX_MSG(CConnectionScheduleDlg)
  64. afx_msg void OnRadioFour();
  65. afx_msg void OnRadioNone();
  66. afx_msg void OnRadioOne();
  67. afx_msg void OnRadioTwo();
  68. virtual BOOL OnInitDialog();
  69. virtual void OnOK();
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. // Generated OLE dispatch map functions
  73. //{{AFX_DISPATCH(CConnectionScheduleDlg)
  74. // NOTE - the ClassWizard will add and remove member functions here.
  75. //}}AFX_DISPATCH
  76. DECLARE_DISPATCH_MAP()
  77. DECLARE_INTERFACE_MAP()
  78. CLegendCell m_legendNone;
  79. CLegendCell m_legendOne;
  80. CLegendCell m_legendTwo;
  81. CLegendCell m_legendFour;
  82. virtual void UpdateButtons ();
  83. private:
  84. BYTE* m_prgbData168;
  85. };
  86. /////////////////////////////////////////////////////////////////////////////
  87. // CReplicationScheduleDlg dialog
  88. class CReplicationScheduleDlg : public CScheduleBaseDlg
  89. {
  90. // Construction
  91. public:
  92. CReplicationScheduleDlg(CWnd* pParent); // standard constructor
  93. void SetConnectionByteArray (INOUT BYTE rgbData[SCHEDULE_DATA_ENTRIES]);
  94. virtual int GetIDD ()
  95. {
  96. return IDD;
  97. }
  98. // Dialog Data
  99. //{{AFX_DATA(CReplicationScheduleDlg)
  100. enum { IDD = IDD_REPLICATION_SCHEDULE };
  101. CButton m_buttonNone;
  102. CButton m_buttonFour;
  103. //}}AFX_DATA
  104. // Overrides
  105. // ClassWizard generated virtual function overrides
  106. //{{AFX_VIRTUAL(CReplicationScheduleDlg)
  107. public:
  108. virtual void OnFinalRelease();
  109. protected:
  110. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  111. //}}AFX_VIRTUAL
  112. // Implementation
  113. protected:
  114. virtual void TimeChange();
  115. virtual UINT GetExpectedArrayLength();
  116. virtual BYTE GetMatrixPercentage(UINT nHour, UINT nDay);
  117. virtual UINT GetPercentageToSet (const BYTE bData);
  118. virtual void InitMatrix ();
  119. // Generated message map functions
  120. //{{AFX_MSG(CReplicationScheduleDlg)
  121. afx_msg void OnRadioFour();
  122. afx_msg void OnRadioNone();
  123. virtual BOOL OnInitDialog();
  124. virtual void OnOK();
  125. //}}AFX_MSG
  126. DECLARE_MESSAGE_MAP()
  127. // Generated OLE dispatch map functions
  128. //{{AFX_DISPATCH(CReplicationScheduleDlg)
  129. // NOTE - the ClassWizard will add and remove member functions here.
  130. //}}AFX_DISPATCH
  131. DECLARE_DISPATCH_MAP()
  132. DECLARE_INTERFACE_MAP()
  133. CLegendCell m_legendNone;
  134. CLegendCell m_legendFour;
  135. virtual void UpdateButtons ();
  136. private:
  137. BYTE* m_prgbData168;
  138. };
  139. //{{AFX_INSERT_LOCATION}}
  140. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  141. #endif // !defined(AFX_SCHEDDLG_H__701CFB37_AEF8_11D1_9864_00C04FB94F17__INCLUDED_)