Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tree Ctrl Problem

0 views
Skip to first unread message

Michael Fox

unread,
Apr 9, 2002, 1:58:19 PM4/9/02
to

I am having problems ensuring that a tree item is visible in a tree control.
I have tried expanding the parent and using the "EnsureVisible" method on
the item but the tree will still appeared unexpanded at the parent. I did
read in MSDN that there is a problem with drag drop so I have also disabled
drag drop through the property pages for the control.

/* Does not appear to work */
hParent = m_objTreeSelected.GetParentItem(hTreeItem);
iDebug = m_objTreeSelected.Expand(hParent, TVE_EXPAND);
strDebug = m_objTreeSelected.GetItemText(hTreeItem);
iDebug = m_objTreeSelected.EnsureVisible(hTreeItem);

Any suggestions on how to truly ensure a tree item will be visible would be
appreciated.

Thanks,
Michael Fox


Kurt Lawlor

unread,
Apr 10, 2002, 3:16:26 AM4/10/02
to
Try ::Select(htreeitem,TVGN_FIRSTVISIBLE)
with the others

"Michael Fox" <mf...@aeromet.com> wrote in message
news:OsFpwA$3BHA.1364@tkmsftngp05...

0 new messages