J
JP
I have an app that represents ShellFolder Items as a visual element
(listview item, etc). The code correctly performs Drag&Drop operations
EXCEPT in the case when the item being dragged is from a Virtual
Folder. The problem is that the DragSource is my app, not the Virtual
Folder, and therefore the IDataObject interface is clueless about how
to get the data.
My understanding is that I need to obtain and use the IDataObject
Interface of the Folder, since the Folder is the only thing that knows
how to extract the data. This I can do.
My Question:
How do I instruct the Folder's IDataObject as to which items
controlled by that folder should be included/made available through the
IDataObject?
My initial thought is to use the IDataObject's SetData method to pass
it a "Shell IDList Array" (CIDA) structure containing the items I want.
However, this seems backwards to me.
There must be some "normal" or "usual" way to do this, I just don't
know what that is.
Any help -- references, samples, advice, etc will be appreciated!
Thanks,
JP
(listview item, etc). The code correctly performs Drag&Drop operations
EXCEPT in the case when the item being dragged is from a Virtual
Folder. The problem is that the DragSource is my app, not the Virtual
Folder, and therefore the IDataObject interface is clueless about how
to get the data.
My understanding is that I need to obtain and use the IDataObject
Interface of the Folder, since the Folder is the only thing that knows
how to extract the data. This I can do.
My Question:
How do I instruct the Folder's IDataObject as to which items
controlled by that folder should be included/made available through the
IDataObject?
My initial thought is to use the IDataObject's SetData method to pass
it a "Shell IDList Array" (CIDA) structure containing the items I want.
However, this seems backwards to me.
There must be some "normal" or "usual" way to do this, I just don't
know what that is.
Any help -- references, samples, advice, etc will be appreciated!
Thanks,
JP