Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

Getting and Using IDataObject from Virtual Folders (Shell Namespace Extentions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JP - 29 Jul 2005 20:38 GMT
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
William DePalo [MVP VC++] - 29 Jul 2005 22:14 GMT
>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.
> ...
> Any help -- references, samples, advice, etc will be appreciated!

If no one responds here try posting again in the group

   microsoft.public.platformsdk.shell

Regards,
Will
JP - 30 Jul 2005 02:40 GMT
Will,
Thanks --- I was looking for the appropriate group -- and that one is
it.
Atul - 30 Jul 2005 08:23 GMT
What you are doing is correct. Set the PIDL for the virtual folder as the
data for the dragdrop in the CFSTR_SHELLIDLIST format.
During dragdrop, use the IDropTarget of the folder which the dragdrop
operation is currently over.

- Atul
Sky Software http://www.ssware.com/
Drop-In Windows Explorer-Like Shell Browsing UI for your apps.

>I have an app that represents ShellFolder Items as a visual element
> (listview item, etc).  The code correctly performs Drag&Drop operations
[quoted text clipped - 18 lines]
>  Thanks,
>     JP

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.