>I stumble upon a treeview problem asked by someone:
>how to drag&drop (or oleDragdrop) from windows explorer manually and directly to a treeview (SP6 shipped with vfp)
>the object dropped in the treeview can be a complet folder with all its contents (subfolders..), any file,a picture,...
>anyone can solve this problem ?
>i set the 2 properties for the treeview(oleclass:"MSComctlLib.TreeCtrl.2")
>treeview.oleDragMode=1
>treeview.oleDropmode=1
>there is 2 treeview methods to fill: oledragOver and oleDragDrop to accomplish the goal but how?
>note : any thing must change in the source.
>thank you in advance.
Maybe I don't understand what you're trying to do, but my first thought would be that all you really need is the name of the top level folder passed in as a parameter in one of the OleDrag* events/methods. You can then process subfolders and files (with ADIR() etc) and programmatically create TreeView nodes to match whatever you find.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up