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.
- Returns nonzero if the system scrolled the items in the tree view control and no items were expanded. Otherwise, the message returns zero.
- 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.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.