BCGControlBar Pro for MFC
void CBCGPShellTree::SetRelatedList ( CBCGPShellList pShellList,
BOOL  bDontSyncOnSelectByKeyboard = FALSE,
BOOL  bExpandInvisibleItems = TRUE 

Sets a relation between a shell tree control and shell list control (view).

Call this function if you want to create a relation between the shell tree control and a CBCGPShellList control.

The shell list control will automatically update its content when user selects a shell tree item.

pShellListA pointer to list to be set.
bDontSyncOnSelectByKeyboardSpecifies whether the list content should be updated when the tree selection was changed by the keyboard.
bExpandInvisibleItemsSpecifies whether the tree node associated with shell list path should be expanded.