Prev Next

TVM_ENSUREVISIBLE Overview  Group

The TVM_ENSUREVISIBLE message ensures that a tree-view item is visible, expanding the parent item or scrolling the tree-view control, if necessary. You can send this message explicitly or by using the TreeView_EnsureVisible macro.

TVM_ENSUREVISIBLE 

wParam = 0; 

lParam = (LPARAM) (HTREEITEM) hitem; 

 

Parameters

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 message returns FALSE.

Remarks

If the TVM_ENSUREVISIBLE message expands the parent item, the parent window receives the TVN_ITEMEXPANDING and TVN_ITEMEXPANDED notification messages.

See Also

TreeView_EnsureVisible, TVN_ITEMEXPANDED, TVN_ITEMEXPANDING