CopyProperties.h 2.2 KB

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