CTreeView.EnsureVisiblemethod
Ensures that a treeview item is visible, expanding the parent item or scrolling the treeview control, if necessary.
Syntax
FUNCTION EnsureVisible (BYVAL hTreeView AS HWND, BYVAL hItem AS HTREEITEM) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hTreeView | The handle of the TreeView control. | |
hItem | Handle to the item. |
Return value
Returns TRUE if the operation was successful, or FALSE otherwise.
Description
Ensures that a treeview item is visible, expanding the parent item or scrolling the treeview control, if necessary.
Remarks
If the EnsureVisible method expands the parent item, the parent window receives the TVN_ITEMEXPANDING and TVN_ITEMEXPANDED notification codes.
Reference
- Include file
CTreeView.inc - Defined in AfxNova/CTreeView.inc:863
- Documented in Windows/WIndows Controls/CTreeView Class.md
- Topic: CTreeView Class