Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1995 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. #include "stdafx.h"
  11. #include "stdafx2.h"
  12. #ifdef AFX_INIT_SEG
  13. #pragma code_seg(AFX_INIT_SEG)
  14. #endif
  15. #ifdef _DEBUG
  16. #undef THIS_FILE
  17. static char THIS_FILE[] = __FILE__;
  18. #endif
  19. #define new DEBUG_NEW
  20. #ifdef _MAC
  21. AEEventHandlerUPP _afxPfnOleAuto;
  22. #endif
  23. /////////////////////////////////////////////////////////////////////////////
  24. // OLE OLE_DATA init structure
  25. OLE_DATA _oleData;
  26. OLE_DATA::OLE_DATA()
  27. {
  28. // OLE 1.0 Clipboard formats
  29. cfNative = ::RegisterClipboardFormat(_T("Native"));
  30. cfOwnerLink = ::RegisterClipboardFormat(_T("OwnerLink"));
  31. cfObjectLink = ::RegisterClipboardFormat(_T("ObjectLink"));
  32. // OLE 2.0 Clipboard formats
  33. cfEmbeddedObject = ::RegisterClipboardFormat(_T("Embedded Object"));
  34. cfEmbedSource = ::RegisterClipboardFormat(_T("Embed Source"));
  35. cfLinkSource = ::RegisterClipboardFormat(_T("Link Source"));
  36. cfObjectDescriptor = ::RegisterClipboardFormat(_T("Object Descriptor"));
  37. cfLinkSourceDescriptor = ::RegisterClipboardFormat(_T("Link Source Descriptor"));
  38. cfFileName = ::RegisterClipboardFormat(_T("FileName"));
  39. cfFileNameW = ::RegisterClipboardFormat(_T("FileNameW"));
  40. cfRichTextFormat = ::RegisterClipboardFormat(_T("Rich Text Format"));
  41. cfRichTextAndObjects = ::RegisterClipboardFormat(_T("RichEdit Text and Objects"));
  42. }