CTreeCtrl::EnsureVisible

This method ensures that a tree view item is visible. If necessary, the method expands the parent item or scrolls the tree view control so that the item is visible.

At a Glance

Header file: Afxcmn.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions:: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL EnsureVisible( HTREEITEM hItem );

See Also

CTreeCtrl::GetFirstVisibleItem, CTreeCtrl::GetVisibleCount