CopyProperties.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #include "afxwin.h"
  2. #if !defined(AFX_COPYPROPERTIES_H__129FE1CD_D305_487A_B88C_BB01CD9C1BB7__INCLUDED_)
  3. #define AFX_COPYPROPERTIES_H__129FE1CD_D305_487A_B88C_BB01CD9C1BB7__INCLUDED_
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // CopyProperties.h : header file
  8. //
  9. #include "GroupCombo.h"
  10. #include "RichEditCtrlEx.h"
  11. #include "DialogResizer.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CCopyProperties dialog
  14. class CCopyProperties : public CDialog
  15. {
  16. // Construction
  17. public:
  18. CCopyProperties(long lCopyID, CWnd* pParent = NULL, CClip *pMemoryClip = NULL); // standard constructor
  19. // Dialog Data
  20. //{{AFX_DATA(CCopyProperties)
  21. enum { IDD = IDD_COPY_PROPERTIES };
  22. CEdit m_QuickPasteText;
  23. CEdit m_description;
  24. CGroupCombo m_GroupCombo;
  25. CHotKeyCtrl m_HotKey;
  26. CHotKeyCtrl m_MoveToGrouHotKey;
  27. CListBox m_lCopyData;
  28. CString m_eDate;
  29. CString m_lastPasteDate;
  30. BOOL m_bNeverAutoDelete;
  31. BOOL m_hotKeyGlobal;
  32. BOOL m_moveToGroupHotKeyGlobal;
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CCopyProperties)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. public:
  41. bool m_bChangedText;
  42. long m_lGroupChangedTo;
  43. void SetHideOnKillFocus(bool bVal) { m_bHideOnKillFocus = bVal; }
  44. void SetHandleKillFocus(bool bVal) { m_bHandleKillFocus = bVal; }
  45. void SetToTopMost(bool bVal) { m_bSetToTopMost = bVal; }
  46. // Implementation
  47. protected:
  48. long m_lCopyID;
  49. ARRAY m_DeletedData;
  50. bool m_bDeletedData;
  51. bool m_bHideOnKillFocus;
  52. CDialogResizer m_Resize;
  53. bool m_bInGroup;
  54. bool m_bHandleKillFocus;
  55. bool m_bSetToTopMost;
  56. CClip *m_pMemoryClip;
  57. CBrush m_brush;
  58. CClip m_clip;
  59. void LoadDataIntoCClip(CClip &Clip);
  60. void LoadDataFromCClip(CClip &Clip);
  61. BOOL CheckGlobalHotKey(CClip &clip);
  62. BOOL CheckMoveToGroupGlobalHotKey(CClip &clip);
  63. // Generated message map functions
  64. //{{AFX_MSG(CCopyProperties)
  65. virtual BOOL OnInitDialog();
  66. virtual void OnOK();
  67. afx_msg void OnDeleteCopyData();
  68. virtual void OnCancel();
  69. afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  70. afx_msg void OnSize(UINT nType, int cx, int cy);
  71. //}}AFX_MSG
  72. DECLARE_MESSAGE_MAP()
  73. public:
  74. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  75. afx_msg void OnLbnSelchangeCopyData();
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_COPYPROPERTIES_H__129FE1CD_D305_487A_B88C_BB01CD9C1BB7__INCLUDED_)