Hello Antonio,
thank you for your answer.
My implementation does not recognize the drop event. FiveWin only recognizes files if they are dropped not textonly.
There is also pure C code:
http://catch22.net/sites/default/files/ ... Epart6.rar
http://catch22.net/tuts/dragdrop/6
Sat, 08/30/2008 - 09:17 — james
Updated 6 Dec 2006
Many thanks to Davide Chiodi from Italy who has very kindly converted the drop-target code into a Pure C implementation!
Welcome to the sixth part of the "OLE Drag and Drop" tutorial series! This article will concentrate on implementing a small application which will act as a drop-target. What this means is that our application will be capable of receiving objects (be they files, pictures or text) which are dragged onto it.
We will implement an IDropTarget COM interface which will allow any OLE application to drag it's data over our application. This will take the form of a simple EDIT control which can act as a target for dropped CF_TEXT data. Hopefully you will be able to take the code presented here and "drag" it straight into your own apps
Become a "Drop Target"
In order for a window to accept data from a drap-drop operation, it must be registered as a "drop target". There is an OLE API call - RegisterDragDrop - which is used for this very purpose. The function prototype looks like this:
WINOLEAPI RegisterDragDrop(HWND hwnd, IDropTarget * pDropTarget);