Re: Question about SHCreateShellFolderView and Drag and Drop.. Drop on NSE is fine.. but Drag from NSE (DropSource), is problem

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Henk Devos (info_at_dontspamme.regxplor.com)
Date: 08/09/04


Date: Tue, 10 Aug 2004 00:05:36 +0200


"Sridhar Anupindi" wrote

> We did implement the EnumFormatEtc. How ever we did only constructor
> and for all the methods (Next, Skip etc) we are returning E_NOTIMPL
> from there. Is it ok we do it this way.. or do we have to implement
> all the methods also..?

You will have to implement the whole thing.
Not a lot of work really.
Also don't forget the Reset, it might actually be used.
I don't think the Skip will ever be called, as it seems to be quite useless.

> I do understand that this may not be a right place to call the
> DoDragDrop. As I said earlier we are implementing
> SHCreateShellFolderView as our folderview and not custom shellview
> implementation. Hence we are not sure where to implement the
> DoDragDrop. If we had a shellview we know that we can implement it in
> LVN_BEGINDRAG method. But in this SHCreateShellFolderView we are not
> sure where to implement it? Can you throw some light on this.
>

The shell will do this for you.
Typically like you say in the handler for LVN__BEGINDRAG, the shell will ask
for your IDataObject and call DoDragDrop.

--
Henk Devos
www.whirlingdervishes.com


Relevant Pages