OptionsGeneral.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #if !defined(AFX_OPTIONSGENERAL_H__A13ABBF6_7636_4426_9A31_0189D4CA8F2F__INCLUDED_)
  2. #define AFX_OPTIONSGENERAL_H__A13ABBF6_7636_4426_9A31_0189D4CA8F2F__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // OptionsGeneral.h : header file
  7. //
  8. #include "stdafx.h"
  9. #include "CP_Main.h"
  10. #include "OptionsSheet.h"
  11. #include "NumberEdit.h"
  12. #include "afxwin.h"
  13. #include "HyperLink.h"
  14. /////////////////////////////////////////////////////////////////////////////
  15. // COptionsGeneral dialog
  16. class COptionsGeneral : public CPropertyPage
  17. {
  18. DECLARE_DYNCREATE(COptionsGeneral)
  19. // Construction
  20. public:
  21. COptionsGeneral();
  22. ~COptionsGeneral();
  23. // Dialog Data
  24. //{{AFX_DATA(COptionsGeneral)
  25. enum { IDD = IDD_OPTIONS_GENERAL };
  26. //CButton m_EnsureConnected;
  27. CNumberEdit m_SaveDelay;
  28. CComboBox m_cbLanguage;
  29. CEdit m_MaxClipSize;
  30. CButton m_btSendPasteMessage;
  31. CButton m_btHideDittoOnHotKey;
  32. CNumberEdit m_DescTextSize;
  33. CEdit m_ePath;
  34. CNumberEdit m_eExpireAfter;
  35. CNumberEdit m_eMaxSavedCopies;
  36. CButton m_btMaximumCheck;
  37. CButton m_btExpire;
  38. CButton m_btShowIconInSysTray;
  39. CButton m_btRunOnStartup;
  40. CButton m_btSaveMultiPaste;
  41. CString m_csPlaySound;
  42. CEdit m_ClipSeparator;
  43. CEdit m_copyAppInclude;
  44. CEdit m_copyAppExclude;
  45. CMFCLinkCtrl m_envVarLink;
  46. //}}AFX_DATA
  47. // Overrides
  48. // ClassWizard generate virtual function overrides
  49. //{{AFX_VIRTUAL(COptionsGeneral)
  50. public:
  51. virtual BOOL OnSetActive();
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  54. virtual BOOL OnApply();
  55. //}}AFX_VIRTUAL
  56. // Implementation
  57. protected:
  58. COptionsSheet *m_pParent;
  59. CString m_csTitle;
  60. CBrush m_brush;
  61. CFont m_Font;
  62. LOGFONT m_LogFont;
  63. CFont m_envVarFont;
  64. void FillThemes();
  65. void FillLanguages();
  66. // Generated message map functions
  67. //{{AFX_MSG(COptionsGeneral)
  68. virtual BOOL OnInitDialog();
  69. afx_msg void OnGetPath();
  70. afx_msg void OnButtonAbout();
  71. //}}AFX_MSG
  72. DECLARE_MESSAGE_MAP()
  73. public:
  74. afx_msg void OnBnClickedButtonAdvanced();
  75. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  76. afx_msg void OnBnClickedButtonTheme();
  77. afx_msg void OnBnClickedButtonDefaultFault();
  78. afx_msg void OnBnClickedButtonFont();
  79. CComboBox m_cbTheme;
  80. CButton m_btFont;
  81. CButton m_btDefaultButton;
  82. CComboBox m_popupPositionCombo;
  83. //afx_msg void OnNMClickSyslinkEnvVarInfo(NMHDR *pNMHDR, LRESULT *pResult);
  84. //afx_msg void OnEnChangePath();
  85. afx_msg void OnEnChangePath();
  86. };
  87. //{{AFX_INSERT_LOCATION}}
  88. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  89. #endif // !defined(AFX_OPTIONSGENERAL_H__A13ABBF6_7636_4426_9A31_0189D4CA8F2F__INCLUDED_)