What you mean by "tree data structure"? You don't seem like talking about MFC Tree Control or are you?