A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Although the Tree-View control does not natively track the indentation of an item you can store this information by using the lParam member of the item's TVITEM or TVITEMEX structure when you insert the item.
Consequently, retrieving the indentation of an item would not require traversing the tree each time the information is needed. Of course, it would be your responsibility to update this static information if an item was relocated.