Share via


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.

BOOL TreeView_EnsureVisible( 
hwnd, 
hitem );

Parameters

  • hwnd
    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.

Related message: TVM_ENSUREVISIBLE

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Commctrl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.