TreeView_EnsureVisible

This macro ensures that a tree-view item is visible, expanding the parent item or scrolling the tree-view control, if necessary. You can use this macro or send the TVM_ENSUREVISIBLE message explicitly.

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later
Related message: TVM_ENSUREVISIBLE

Syntax

BOOL TreeView_EnsureVisible( hwnd, hitem);

Parameters

hwndTV

Handle to the tree view control.

hitem

Handle to the item.

Return Values

Nonzero indicates that the system scrolled the items in the tree view control and no items were expanded. Zero indicates otherwise.

Remarks

If the TreeView_EnsureVisible macro expands the parent item, the parent window receives the TVN_ITEMEXPANDING and TVN_ITEMEXPANDED notification messages.