CopyProperties.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. CListBox m_lCopyData;
  27. CString m_eDate;
  28. CString m_lastPasteDate;
  29. BOOL m_bNeverAutoDelete;
  30. BOOL m_hotKeyGlobal;
  31. //}}AFX_DATA
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CCopyProperties)
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  37. //}}AFX_VIRTUAL
  38. public:
  39. bool m_bChangedText;
  40. long m_lGroupChangedTo;
  41. void SetHideOnKillFocus(bool bVal) { m_bHideOnKillFocus = bVal; }
  42. void SetHandleKillFocus(bool bVal) { m_bHandleKillFocus = bVal; }
  43. void SetToTopMost(bool bVal) { m_bSetToTopMost = bVal; }
  44. // Implementation
  45. protected:
  46. long m_lCopyID;
  47. ARRAY m_DeletedData;
  48. bool m_bDeletedData;
  49. bool m_bHideOnKillFocus;
  50. CDialogResizer m_Resize;
  51. bool m_bInGroup;
  52. bool m_bHandleKillFocus;
  53. bool m_bSetToTopMost;
  54. CClip *m_pMemoryClip;
  55. void LoadDataIntoCClip(CClip &Clip);
  56. void LoadDataFromCClip(CClip &Clip);
  57. BOOL CheckGlobalHotKey(CClip &clip);
  58. // Generated message map functions
  59. //{{AFX_MSG(CCopyProperties)
  60. virtual BOOL OnInitDialog();
  61. virtual void OnOK();
  62. afx_msg void OnDeleteCopyData();
  63. virtual void OnCancel();
  64. afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  65. afx_msg void OnSize(UINT nType, int cx, int cy);
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  71. #endif // !defined(AFX_COPYPROPERTIES_H__129FE1CD_D305_487A_B88C_BB01CD9C1BB7__INCLUDED_)