Gaston Milano's WebLog

About something...

Sponsors

News

General

Usability

VS Automation

VSIP

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)

 

 

Posted: Dec 05 2003, 01:37 PM by GMilano | with 1 comment(s)
Filed under:

Comments

e2wind said:

you can see the code from hu_node.cpp??
# July 9, 2004 8:01 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)