المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Populating a TreeView via Drag and Drop from Windows Explorer



C++ Programming
07-09-2009, 11:10 PM
Hi All,

I'm having trouble writing code in C++ to populate an empty TreeView with a directory structure derived from dragging and dropping a folder from Windows Explorer. I'd like the folder being dragged to become the root node of the TreeView and all of its subfolders to become the child nodes. I have ItemDrag, DragEnter, and DragDrop event handlers - it's the DragDrop event handler I'm having problems with. I can't get it to actually populate the TreeView, mainly because I'm not sure how to retrieve the information necessary to copy. Any ideas?

Thanks.