Hi all,
Im probably missing something basic here, but does anyone know how i can test to see if a tree item node is currently expanded or not?
Thanks
Neil
Printable View
Hi all,
Im probably missing something basic here, but does anyone know how i can test to see if a tree item node is currently expanded or not?
Thanks
Neil
if (GetItemState(hItem, TVIS_EXPANDED) & TVIS_EXPANDED)
{
// hItem is expanded
}
else
// hItem is collapsed
I've seen GetItemState return MORE states than the ones I asked it for, I've made it a habit to explicitly test the returned state again (sigh), hence the "& TVIS_EXPANDED" which shouldn't be required.