CopyProperties.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. bool m_mouseDownOnCaption;
  60. void LoadDataIntoCClip(CClip &Clip);
  61. void LoadDataFromCClip(CClip &Clip);
  62. BOOL CheckGlobalHotKey(CClip &clip);
  63. BOOL CheckMoveToGroupGlobalHotKey(CClip &clip);
  64. // Generated message map functions
  65. //{{AFX_MSG(CCopyProperties)
  66. virtual BOOL OnInitDialog();
  67. virtual void OnOK();
  68. afx_msg void OnDeleteCopyData();
  69. virtual void OnCancel();
  70. afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  71. afx_msg void OnSize(UINT nType, int cx, int cy);
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. public:
  75. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  76. afx_msg void OnLbnSelchangeCopyData();
  77. afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
  78. };
  79. //{{AFX_INSERT_LOCATION}}
  80. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  81. #endif // !defined(AFX_COPYPROPERTIES_H__129FE1CD_D305_487A_B88C_BB01CD9C1BB7__INCLUDED_)