realizing a drag & drop Operation is somewhat tricky. For DropTarget, there is an example in the "examples" Folder of FreeBasic. But for the IDropSource, you Need also an IDataObject Interface, which contains the EnumFormatEtc method. And for this, there is a function in the API:
Code: Select all
Declare Function SHCreateStdEnumFmtEtc Alias "SHCreateStdEnumFmtEtc" _
( ByVal As UINT, _
() As FORMATETC, _
Byval As IEnumFORMATETC Ptr) As HRESULT
Do I miss something, or is there any chance that i can use this function? It works only for XP or higher, but this is not really a problem, because support for XP is already going to be stopped by Microsoft ... or have I to write my own Interface? This link is really helpful: http://www.catch22.net/tuts/enumerating-formatetc, but if i can avoid it ...