11-21-2006 11:24 PM
11-22-2006 02:38 AM
Hello Jacky,
you can enable Drag&Drop for a panel by using the EnableDragAndDrop function from the Programmer's Toolbax library. Now, when a file (or multiple files) are dropped into the panel, the panel's callback function will be launched with the EVENT_FILESDROPPED event. The eventData2 parameter contains a pointer to the coordinates where the files are dropped on the panel. Use these coordinates to check if the files are dropped on the list control. The parameter eventData1 points to the list of files that have been dropped. Also note that enabling Drag&Drop is not possible for child panels. To clearify, I wrote a small example for you.
Success,
Wim