Overview
Group
Quick Info

Windows NT
Yes
Win95
Yes
Win32s
Yes
Import Library

Header File
commctrl.h
Unicode
No
Platform Notes
None

TreeView_EnsureVisible

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_ENSUREVISIBLE 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

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples