How to make visible the inserted item in Tree control?
-
Hi all, i'm trying to isert a new item to the tree control when i click on a button.It's working fine if i'm inserting the new item as a child to the another item which is already having child items,but when i try to add the new item to a leaf item (leaf item as parent to the new item)new item is inserted but not visible. How can i come out from this problem.Any one please help me . Thanks in advance.
-
Hi all, i'm trying to isert a new item to the tree control when i click on a button.It's working fine if i'm inserting the new item as a child to the another item which is already having child items,but when i try to add the new item to a leaf item (leaf item as parent to the new item)new item is inserted but not visible. How can i come out from this problem.Any one please help me . Thanks in advance.
-
Try calling - YourTreeCtrl.Expand(hParent, TVE_EXPAND) where "hParent" is the leaf which is now the parent of the new item
Thank you for your reply Mr GuyM I already tried in this manner but the item was not visible .Any alternative to this .