[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-atl
Subject: Re: namespace extension
From: "Anderson, Alan" <Alan.Anderson () GBR ! XEROX ! COM>
Date: 2001-04-30 13:32:13
[Download RAW message or body]
Thanks Tim
I found the problem with SHChangeNotify - I was creating a pidl relative to
the desktop, where I should have just used the pidl passed into
IPersistFolder::Initialize (guess there are some differences).
I've still to test my tree D&D
thanks
Alan
-----Original Message-----
From: Tim Tabor [mailto:tltabor@EARTHLINK.NET]
Sent: 29 April 2001 15:20
To: ATL@DISCUSS.MICROSOFT.COM
Subject: Re: namespace extension
Hi again, Alan.
> -----Original Message-----
> From: ATL - Active Template Library [mailto:ATL@DISCUSS.MICROSOFT.COM]On
> Behalf Of Anderson, Alan
> 1.what additional interfaces do I need to implement on my IShellFolder
> object for drag and drop? I've got this working in the folder
> view, but not
> the tree view.
>
At a minimum, you need to implement IDropTarget,
and return the pointer to the shell when it
calls your IShellFolder::GetUIObjectOf with
IID_IDropTarget.
You'll also need to return the appropriate
attributes when the shell calls your
IShellFolder::GetAttributesOf. The drop
source needs to return some combination of
SFGAO_CANCOPY
SFGAO_CANMOVE
SFGAO_CANLINK
And the drop target needs to return
SFGAO_DROPTARGET
> 2.If I change or add an item in the folder view which is also in the tree
> view, how do I refresh the tree to reflect the changes?
>
Call SHChangeNotify with SHCNF_IDLIST for the uFlags and
absolute pidls for the dwItems.
You can use my ShellSpy to see how the shell does it for its
own objects:
http://www.cheztabor.com/ShellSpy/
// tim
----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:ATL-signoff-request@DISCUSS.MICROSOFT.COM
----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:ATL-signoff-request@DISCUSS.MICROSOFT.COM
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic