TreeView_EnsureVisibleTreeView_EnsureVisible*
*Contents  *Index  *Topic Contents
*Previous Topic: TreeView_EndEditLabelNow
*Next Topic: TreeView_Expand

TreeView_EnsureVisible


BOOL TreeView_EnsureVisible(
   HWND hwndTV,
   HTREEITEM hitem
   );		

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.

hwndTV
Handle to the tree view control.
hitem
Handle to the item.

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


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.