OptionsDialogBar.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:4k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // OptionsDialogBar.h : header file
  2. //
  3. // This file is a part of the XTREME TOOLKIT PRO MFC class library.
  4. // (c)1998-2008 Codejock Software, All Rights Reserved.
  5. //
  6. // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
  7. // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
  8. // CONSENT OF CODEJOCK SOFTWARE.
  9. //
  10. // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
  11. // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
  12. // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
  13. // SINGLE COMPUTER.
  14. //
  15. // CONTACT INFORMATION:
  16. // support@codejock.com
  17. // http://www.codejock.com
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #if !defined(AFX_OPTIONSDIALOGBAR_H__FD6A82C4_7E32_441A_BF20_888CC7F17443__INCLUDED_)
  21. #define AFX_OPTIONSDIALOGBAR_H__FD6A82C4_7E32_441A_BF20_888CC7F17443__INCLUDED_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif // _MSC_VER >= 1000
  25. class CXTPCalendarControl;
  26. /////////////////////////////////////////////////////////////////////////////
  27. // COptionsDialogBar dialog
  28. class COptionsDialogBar : public CDialogBar
  29. {
  30. // Construction
  31. public:
  32. COptionsDialogBar(CWnd* pParent = NULL);   // standard constructor
  33. ~COptionsDialogBar();
  34. // Dialog Data
  35. //{{AFX_DATA(COptionsDialogBar)
  36. enum { IDD = IDD_CALENDAR_DEMO_VIEW };
  37. // NOTE: the ClassWizard will add data members here
  38. //}}AFX_DATA
  39. void OnViewChanged(XTPCalendarViewType viewType);
  40. void Init();
  41. void Close();
  42. CButton m_ctrlWorkWeekDays[7];
  43. CComboBox m_ctrlFirstDayOfWeekCb;
  44. CComboBox m_ctrlStartTimeCb;
  45. CComboBox m_ctrlEndTimeCb;
  46.     
  47. CComboBox m_ctrlSelchangeTimeScaleCb;
  48. CComboBox m_ctrlTooltipMode;
  49. CButton m_ctrlMonth_ShowEndTime;
  50. CButton m_ctrlMonth_ShowTimeAsClocks;
  51. CButton m_ctrlMonth_CompressWeekendDays;
  52. CComboBox m_ctrlMonth_WeeksCount;
  53. CButton m_ctrlWeek_ShowTimeAsClock;
  54. CButton m_ctrlWeek_ShowEndTime;
  55. CUIntArray m_arOptCtrlIDsAll;
  56. CUIntArray m_arOptCtrlIDsCommon;
  57. CUIntArray m_arOptCtrlIDsDayView;
  58. CUIntArray m_arOptCtrlIDsWeekView;
  59. CUIntArray m_arOptCtrlIDsMonthView;
  60. // Overrides
  61. // ClassWizard generated virtual function overrides
  62. //{{AFX_VIRTUAL(COptionsDialogBar)
  63. protected:
  64. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  65. //}}AFX_VIRTUAL
  66. // Implementation
  67. protected:
  68. // Generated message map functions
  69. //{{AFX_MSG(COptionsDialogBar)
  70. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  71. //}}AFX_MSG
  72. //public:
  73. afx_msg void OnInitDialog();
  74. afx_msg void OnBnClickedMonthCompressWeekendDays();
  75. afx_msg void OnBnClickedMonthShowEndTime();
  76. afx_msg void OnBnClickedMonthSchowTimeAsClock();
  77. afx_msg void OnCbnSelchangeFirstDayOfWeekCb();
  78. afx_msg void OnCbnSelchangeMonthWeeksCount();
  79. afx_msg void OnCbnSelchangeTimeScale();
  80. afx_msg void OnBnClickedWeekSchowTimeAsClock();
  81. afx_msg void OnBnClickedWeekShowEndTime();
  82. afx_msg void OnBnClickedTimeZoneBtn();
  83. afx_msg void OnBnClickedScrollDayPrev();
  84. afx_msg void OnBnClickedIdcScrollDayNext();
  85. afx_msg void OnCbnSelchangeStartTimeCb();
  86. afx_msg void OnCbnSelchangeEndTimeCb();
  87. afx_msg void OnBnClickedWorkWeekDay();
  88. afx_msg void OnBnClickedHideOptionsPane();
  89. afx_msg void OnCbnSelchangeTooltipMode();
  90. CXTPCalendarControl* GetCalendarCtrl();
  91.     
  92. void UpdateControlsState();
  93. void PopulateWorkDays();
  94. DECLARE_MESSAGE_MAP()
  95. DECLARE_XTP_SINK(COptionsDialogBar, m_Sink);
  96. void OnCalendarEvent_TimeSacleWasChanged(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam);
  97. void OnCalendarEvent_ViewWasChanged(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam);
  98. };
  99. //{{AFX_INSERT_LOCATION}}
  100. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  101. #endif // !defined(AFX_OPTIONSDIALOGBAR_H__FD6A82C4_7E32_441A_BF20_888CC7F17443__INCLUDED_)