Class TDropFileSource (unit DropSource)

Inherits from

TDropSource

IDropSource

IDataObject

Constructors


constructor Create;

----------------------------------------------------------------------------- TDropFileSource -----------------------------------------------------------------------------

constructor CreateFileList(Filenames: TStrings);


constructor CreateFilename(const Filename: String);



Functions

destructor Destroy;


function DoEnumFormatEtc(dwDirection: Longint; out enumFormatEtc: IEnumFormatEtc): HResult;

This method is called by the drop target to check whether the source provides data in a format that the target accepts.

function DoGetData(const formatetcIn: TFormatEtc; out medium: TStgMedium):HResult;


function DoGetDataHere(const formatetc: TFormatEtc; out medium: TStgMedium):HResult;


function DoQueryGetData(const formatetc: TFormatEtc): HResult;


Properties

property Files : TStrings


Events

Variables

FFiles : TStrings;



Constructors


constructor Create;

----------------------------------------------------------------------------- TDropFileSource -----------------------------------------------------------------------------


constructor CreateFileList(Filenames: TStrings);


constructor CreateFilename(const Filename: String);


Functions


destructor Destroy;


function DoEnumFormatEtc(dwDirection: Longint; out enumFormatEtc: IEnumFormatEtc): HResult;

This method is called by the drop target to check whether the source provides data in a format that the target accepts.


function DoGetData(const formatetcIn: TFormatEtc; out medium: TStgMedium):HResult;


function DoGetDataHere(const formatetc: TFormatEtc; out medium: TStgMedium):HResult;


function DoQueryGetData(const formatetc: TFormatEtc): HResult;


Properties


property Files : TStrings


Events


Variables


FFiles : TStrings;