BCGControlBar Pro for MFC
BOOL CBCGPShellTree::SelectPath ( LPCTSTR  lpszPath,
BOOL  bExpandNodes = TRUE 
)

Given a PIDL or string containing a path selects the appropriate tree control item.

Returns
S_OK if the appropriate tree item was found and selected; otherwise E_FAIL;

Call this member function to select a tree control item with accordance to the given textual path or PIDL.

Parameters
lpszPathSpecifies the path.
bExpandNodesSpecifies whether the tree node associated with selected path should be expanded.