ProcessCopy.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // ProcessCopy.h: interface for the CProcessCopy class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_PROCESSCOPY_H__185CBB6F_4B63_4397_8FF9_E18D777DA506__INCLUDED_)
  5. #define AFX_PROCESSCOPY_H__185CBB6F_4B63_4397_8FF9_E18D777DA506__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include <afxole.h>
  10. #include <afxtempl.h>
  11. class COleDataObjectEx : public COleDataObject
  12. {
  13. public:
  14. HGLOBAL GetGlobalData(CLIPFORMAT cfFormat, LPFORMATETC lpFormatEtc = NULL);
  15. };
  16. #define LENGTH_OF_TEXT_SNIPET 249
  17. class CProcessCopy
  18. {
  19. public:
  20. CProcessCopy();
  21. virtual ~CProcessCopy();
  22. BOOL DoCopy();
  23. static CString GetDBString(CLIPFORMAT cbType);
  24. static CString GetDescriptionString(CLIPFORMAT cbType);
  25. protected:
  26. //Functions
  27. BOOL IsSupportedType(CLIPFORMAT cbType);
  28. long StartCopyProcess();
  29. BOOL GetDescriptionText(CString &csText);
  30. BOOL LoadSupportedTypes();
  31. BOOL GetCopyInfo(CLIPFORMAT &MainType);
  32. BOOL DoesCopyEntryExist();
  33. BOOL IsExactMatch(long lParentID);
  34. void ShowCopyProperties(long lRecID);
  35. //Variables
  36. COleDataObjectEx m_oleData;
  37. CArray<CLIPFORMAT, CLIPFORMAT> m_SupportedTypes;
  38. ULONG m_lTotalCopySize;
  39. long m_lSupportedTypesAvailable;
  40. CRITICAL_SECTION m_CriticalSection;
  41. };
  42. #endif // !defined(AFX_PROCESSCOPY_H__185CBB6F_4B63_4397_8FF9_E18D777DA506__INCLUDED_)