🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Dragging from application to explorer part 2

#4998
From: Stefano Bonifazi
Date: Tue, 25 Oct 2005 06:25
43 lines
3126 bytes
Thank You Mr Lebeau,
  I've never implemented a copy hook shell extension it sounds cool, but 
proceding that way the other programs (i.e. Nero Burning Rom) I've been 
dropping the file lists into far now will stop working as well :-( I would 
like both the common programs, and explorer to work with my drag & drop.
I guess I need to experiment a little with 
CFSTR_FILEGROUPDESCRIPTOR/CFSTR_FILECONTENTS... I wonder if there's some 
code to look at, Microsoft FileDrag example does not work with my  .NET2003, 
so there's no way to focus on what I exactly need in it, their sample 
programs are always big projects and you need a lot of work/time to extract 
what you really need :-( ... while their help is always so "generic", so 
poor of sample code that you always must know exactly all about the topic to 
proceed :-(
I wonder if there's a good "Borland like" article to read about this matter, 
I loved Mr. Chandler's one ... who know if He has something!?!
 Ok I'll try something, if I get something working I will post it :-)
Thank You again Mr. Lebeau,
Stefano B.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel messaggio 
news:435d7a7e$1@newsgroups.borland.com...
>
> Try including the the CFSTR_FILEGROUPDESCRIPTOR/CFSTR_FILECONTENTS and/or
> CFSTR_SHELLIDLIST formats as well.
>
> Alternatively, the only way to get notified of which folder is being 
> dropped
> onto is to install a Copy Hook Shell Extension.  When you perform the
> drag/drop, create a temporary folder first and place its path into the 
> HDROP
> structure instead of the actual filenames.  The shell will think that you
> are dropping an entire folder, and thus it will try to copy/move the 
> folder
> accordingly.  When the copy hook is invoked, it can then determine which
> target folder is involved, then cancel the entire drop operation and
> communicate the target folder back to your application, and finally you 
> can
> then copy your files into the target folder manually.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <435dcf2e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <435cfa68@newsgroups.borland.com> <435d1eac$1@newsgroups.borland.com> <435d36e3@newsgroups.borland.com> <435d7a7e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,69ce42933ddd83bf
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Stefano Bonifazi" <stefboombastic@libero.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <435cfa68@newsgroups.borland.com> <435d1eac$1@newsgroups.borland.com> <435d36e3@newsgroups.borland.com> <435d7a7e$1@newsgroups.borland.com>
Subject: Re: Dragging from application to explorer part 2
Date: Tue, 25 Oct 2005 08:25:39 +0200
Lines: 45
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: 151.28.126.57
Message-ID: <435dcf2e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1130221358 151.28.126.57 (24 Oct 2005 23:22:38 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail