DragDropFiles.hpp 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 2002 by Borland Software Corporation
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'DragDropFiles.pas' rev: 6.00
  5. #ifndef DragDropFilesHPP
  6. #define DragDropFilesHPP
  7. #pragma delphiheader begin
  8. #pragma option push -w-
  9. #pragma option push -Vx
  10. #include <ActiveX.hpp> // Pascal unit
  11. #include <SysUtils.hpp> // Pascal unit
  12. #include <Classes.hpp> // Pascal unit
  13. #include <Windows.hpp> // Pascal unit
  14. #include <DragDrop.hpp> // Pascal unit
  15. #include <SysInit.hpp> // Pascal unit
  16. #include <System.hpp> // Pascal unit
  17. //-- user supplied -----------------------------------------------------------
  18. namespace Dragdropfiles
  19. {
  20. //-- type declarations -------------------------------------------------------
  21. struct TDropFiles;
  22. typedef TDropFiles *PDropFiles;
  23. #pragma pack(push, 1)
  24. struct TDropFiles
  25. {
  26. unsigned pFiles;
  27. Types::TPoint pt;
  28. BOOL fNC;
  29. BOOL fWide;
  30. } ;
  31. #pragma pack(pop)
  32. class DELPHICLASS TDataObjectFiles;
  33. class PASCALIMPLEMENTATION TDataObjectFiles : public Dragdrop::TDataObject
  34. {
  35. typedef Dragdrop::TDataObject inherited;
  36. private:
  37. Classes::TMemoryStream* HDropStream;
  38. public:
  39. __fastcall TDataObjectFiles(Classes::TStringList* StringList);
  40. __fastcall virtual ~TDataObjectFiles(void);
  41. virtual HRESULT __fastcall RenderData(const tagFORMATETC &FormatEtc, tagSTGMEDIUM &StgMedium);
  42. };
  43. class DELPHICLASS TDropTargetFiles;
  44. class PASCALIMPLEMENTATION TDropTargetFiles : public Dragdrop::TDropTarget
  45. {
  46. typedef Dragdrop::TDropTarget inherited;
  47. protected:
  48. virtual void __fastcall AcceptDataObject(_di_IDataObject DataObj, bool &Accept);
  49. public:
  50. __fastcall TDropTargetFiles(Dragdrop::TDragDrop* AOwner);
  51. __fastcall virtual ~TDropTargetFiles(void);
  52. virtual void __fastcall RenderDropped(_di_IDataObject DataObj, int grfKeyState, const Types::TPoint &pt, int &dwEffect);
  53. };
  54. class DELPHICLASS TDragDropFiles;
  55. class PASCALIMPLEMENTATION TDragDropFiles : public Dragdrop::TDragDrop
  56. {
  57. typedef Dragdrop::TDragDrop inherited;
  58. private:
  59. Classes::TStringList* FFileList;
  60. protected:
  61. virtual Dragdrop::TDataObject* __fastcall CreateDataObject(void);
  62. public:
  63. __fastcall virtual TDragDropFiles(Classes::TComponent* AOwner);
  64. __fastcall virtual ~TDragDropFiles(void);
  65. __property Classes::TStringList* FileList = {read=FFileList, write=FFileList};
  66. };
  67. //-- var, const, procedure ---------------------------------------------------
  68. extern PACKAGE void __fastcall Register(void);
  69. } /* namespace Dragdropfiles */
  70. using namespace Dragdropfiles;
  71. #pragma option pop // -w-
  72. #pragma option pop // -Vx
  73. #pragma delphiheader end.
  74. //-- end unit ----------------------------------------------------------------
  75. #endif // DragDropFiles