VSIP: How to select an item in the solution explorer

I spent more time than I was expecting to select an item then...

There isn't a function SelectItem or similar. 

If you are using HierarchyLib you can just call ExtExpand(EXPF_SelectItem) on a HierarchyNode. If you are not using this library then you can see the code from hu_node.cpp.

Basically the steps to select an item are:

1) Find the solution explorer tool window

2) Get the document view for the tool

3) Query the document for IVsUIHierarchyWindow

4) Call ExpandItem( , itemid, EXPF_SelectItem)

 

 

1 Comment

Comments have been disabled for this content.