🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5648

Re: Dragging from application to explorer

#5648
From: Stefano Bonifazi
Date: Fri, 29 Jul 2005 09:18
38 lines
2677 bytes
Thank You Mr. Lebeau for Your answer,
 That is what I found in a your previous answer too :( ... I searched the 
MSDN, but as always is very poor in examples (or maybe I can't search fine!)
What classes I should derive from  IDropSource and IDataObject? The 
TListView? Or simply two other classes?
Would that interfere with the Borland Drag & Drop behaviour? What I need is 
a TListView that works with Borland Drag & Drop within the application 
itself, but also able to "send" the FileNames list to an external program!
Searching sample code I found some MFC applications that use the following:

COleDropSource *pDropSource = new COleDropSource;
COleDataSource *pDataSource = new COleDataSource;

I guess COleDropSource is the Microsoft implemented class for IDropSource 
and IDataObjetc ... Why did not we have something like that with BCB? Where 
may I see how to implement that my own?
In one previous thread about this topic I read one guy of Your team would 
post a sample code in the attachment newsgroup, but I could not find it!
Thank You very much for Your support!
Stefano B.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel messaggio 
news:42e94260$1@newsgroups.borland.com...
>
> "Stefano Bonifazi" <stefboombastic@libero.it> wrote in message
> news:42e93634@newsgroups.borland.com...
>
>>  I need to drag a "filename" from a TListView to an external
>> application that accepts drag & drop from explorer ...
>
> You will need to use OLE Drag&Drop for that.  Specifically, you need to
> derive your own classes from IDropSource and IDataObject, and then call
> DoDragDrop().  Refer to MSDN for more details.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <42e9f481@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42e93634@newsgroups.borland.com> <42e94260$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fe3349103cecbbb9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Stefano Bonifazi" <stefboombastic@libero.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42e93634@newsgroups.borland.com> <42e94260$1@newsgroups.borland.com>
Subject: Re: Dragging from application to explorer
Date: Fri, 29 Jul 2005 11:18:57 +0200
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 212.141.199.130
Message-ID: <42e9f481@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1122628737 212.141.199.130 (29 Jul 2005 02:18:57 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail