qweas wrote: I had tried SetCheck function. But it could not hightlight the item what I give. You need to "select" the item: CTreeCtrl::Select(HTREEITEM hItem, UINT nCode) eg. Select( hItem, TVGN_CARET ); See the CTreeCtrl documentation. Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com