> Yes, I would say that they are the same. The Solution Explorer uses
> UIHierarchy, but each UIHierarchyItem has an Object property that returns
[quoted text clipped - 3 lines]
> hierarchy than the Solution Explorer and for that I traverse the Solution
> / Project / ProjectItems.
Hi John,
I am using my own pictures not the ones of the Solution Explorer window. It
could be that the Solution Explorer window is not even created when your
add-in executes its features, so you can't rely on it, not to mention that
IIRC Window.HWnd returns 0 for all child windows (it only returns the actual
handle for DTE.MainWindow.HWnd).

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
> BTW, in your own tree view, do you use the same icons as seen in Solution
> Explorer. I recently wrote my own tree view for this as well and wanted to
[quoted text clipped - 3 lines]
> Windows handle. Presumably it does but it's "use at your own risk". Do you
> have any experience with this. Thanks again.
John Browning - 12 Oct 2006 14:17 GMT
> I am using my own pictures not the ones of the Solution Explorer window.
> It could be that the Solution Explorer window is not even created when
> your add-in executes its features, so you can't rely on it, not to mention
> that IIRC Window.HWnd returns 0 for all child windows (it only returns the
> actual handle for DTE.MainWindow.HWnd).
Thanks for the info. Note that I was going to dig into this handle using
Win32 methods but if it might not even be created (not sure why or whether I
can always create it on-the-fly) then I might be taking a bigger chance than
using the handle at all (given that it's "for internal use only").