BCGSuite for MFC
void CBCGPTreeCtrlEx::SetSelectedItems ( const CArray< HTREEITEM, HTREEITEM > &  arSelected,
BOOL  bClearSelection = TRUE 
)

Selects multiple tree items.

Use this method to select multiple items. Please note that you need to call the SetSingleSel() method with the parameter FALSE to enable multiple selections of the tree items.

Parameters
arSelectedThe reference to array that contains the tree items to be selected.
bClearSelectionSpecifies whether the previously selected items shoud be unselected.