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

对话框与窗口

开发平台:

Visual C++

  1. // AdvancedCalendarOptionsDlg.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_ADVANCEDCALENDAROPTIONS_H__4BE24FF6_4722_464D_8A62_913CA3CDA7B2__INCLUDED_)
  21. #define AFX_ADVANCEDCALENDAROPTIONS_H__4BE24FF6_4722_464D_8A62_913CA3CDA7B2__INCLUDED_
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. class CXTPCalendarControl;
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CAdvancedCalendarOptionsDlg dialog
  28. //
  29. // This dialog allows you to modify some advanced Calendar options like the
  30. // following: allow/disallow in-place event subject editing with Mouse click, 
  31. // by F2 button, by TAB button, automatically after resizing.
  32. //
  33. // Also: enable/disable drawing of some icons like a key, a head, etc as 
  34. // a regular bitmap or as an Outlook font glyph (note that "Outlook font" 
  35. // drawing could be useful in order to "smooth" font edges, especially when 
  36. // ClearType option is enabled).
  37. //
  38. // Also it allows to enable/disable Reminders Manager window.
  39. //
  40. class CComboBoxColors : public CComboBox
  41. {
  42. public:
  43. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  44. void SelectColor(COLORREF clrColor);
  45. COLORREF GetSelectedColor(int nDefaultColorIndex = 0);
  46. virtual int CompareItem(LPCOMPAREITEMSTRUCT) { return 0; }
  47. };
  48. class CAdvancedCalendarOptionsDlg : public CDialog
  49. {
  50. // Construction
  51. public:
  52. CAdvancedCalendarOptionsDlg(CXTPCalendarControl* pCalendar, CWnd* pParent = NULL);   // standard constructor
  53. // Dialog Data
  54. //{{AFX_DATA(CAdvancedCalendarOptionsDlg)
  55. enum { IDD = IDD_ADVANCED_OPTIONS };
  56. CButton m_ctrlThemeOffice2007;
  57. CButton m_ctrlThemeOffice2003;
  58. CComboBoxColors m_ctrlThemeColor;
  59. CStatic m_ctrlThemeColorLable;
  60. CButton m_ctrlEnableThemes;
  61. CButton m_ctrlEnableMarkup;
  62. CButton m_ctrlEnableGetText;
  63. CButton m_ctrlEditSubject_ByTAB;
  64. CButton m_ctrlEditSubject_ByMouseClick;
  65. CButton m_ctrlEditSubject_ByF2;
  66. CButton m_ctrlEditSubject_AfterResize;
  67. CButton m_ctrlInPlaceCreateEvent;
  68. CButton m_ctrlUseOutlookFontGlyphs;
  69. CButton m_ctrlShowTSMinutes;
  70. CButton m_ctrlReminders;
  71. //}}AFX_DATA
  72. // Overrides
  73. // ClassWizard generated virtual function overrides
  74. //{{AFX_VIRTUAL(CAdvancedCalendarOptionsDlg)
  75. protected:
  76. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  77. //}}AFX_VIRTUAL
  78. // Implementation
  79. protected:
  80. // Generated message map functions
  81. //{{AFX_MSG(CAdvancedCalendarOptionsDlg)
  82. virtual void OnOK();
  83. virtual BOOL OnInitDialog();
  84. afx_msg void OnCheckEnableThemes();
  85. afx_msg void OnRadioThemeOffice2007();
  86. afx_msg void OnRadioThemeOffice2003();
  87. //}}AFX_MSG
  88. void InitThemeColors() ;
  89. DECLARE_MESSAGE_MAP()
  90. CXTPCalendarControl* m_pCalendar;
  91. };
  92. //{{AFX_INSERT_LOCATION}}
  93. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  94. #endif // !defined(AFX_ADVANCEDCALENDAROPTIONS_H__4BE24FF6_4722_464D_8A62_913CA3CDA7B2__INCLUDED_)