CTreeCtrl : How does state and statemaks works?
Posted on 1998-08-11
I want to read and set some states for a tree item. Now, how can I test the value of the flags.
For example, if I use the following : pTree->GetItemState(hItem, TVIS_EXPANDEDONCE) and catch the return code, how can I interpret this code? I want to know if my item was expanded once.
Then, if I want to set the item state, using SetItemState, what the syntax to force expandedonce to be true, for example...
I also need to know how can I know which item is expanding, since GetSelectedItem returns the highlighted item, and the expanding item can be another one, when you push the +/- button on the left.