Article View: borland.public.cppbuilder.nativeapi
Article #8113Re: Drop Files to explorer
From: Remy Lebeau (TeamB)
Date: Tue, 23 Nov 2004 08:29
Date: Tue, 23 Nov 2004 08:29
20 lines
1583 bytes
1583 bytes
"zegi" <zegis@hotmail.com> wrote in message
news:41a2d8ad$1@newsgroups.borland.com...
> How could I Drag/Drop and Copy/Paste Files
> from my Form to the Explorer ?
You must implement the IDataObject and IDropSource interfaces, and then call
the DoDragDrop() function when you detect the user initiating a dragging
operation on your form. The IDropSource interface then handles the actual
copying of data contained in the IDataObject.
You can find more information in the Win32 API documentation. There is a
whole section on handling OLE-based drag-and-drop operations:
Data Transfer
http://msdn.microsoft.com/library/en-us/com/htm/datatran_26k2.asp
Gambit
Technical Details
Message-ID:
<41a2f48e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!prodigy.com!prodigy.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41a2d8ad$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,61450e5150ff75f8 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41a2d8ad$1@newsgroups.borland.com> Subject: Re: Drop Files to explorer Date: Tue, 23 Nov 2004 00:29:47 -0800 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41a2f48e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101198478 68.69.17.41 (23 Nov 2004 00:27:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!prodigy.com!prodigy.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail