TreeView_EnsureVisible  2DGD3I 

The TreeView_EnsureVisible 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 explicitly send the TVM_ENSUREVISIBLE2T3OYB message.

BOOL TreeView_EnsureVisible(

    hwnd,

 

    hitem

 

   );

 

 

Parameters

hwnd

Handle to the tree-view control.

hitem

Handle to the item.

 

Return Values

Returns TRUE if the system scrolled the items in the tree-view control to ensure that the specified item is visible. Otherwise, the macro returns FALSE.

Remarks

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

See Also

TVM_ENSUREVISIBLE, TVN_ITEMEXPANDED, TVN_ITEMEXPANDING