I am trying to create a complicated MFC tree control that has the edit and combobox control capabilities that this tutorial has. However, I found that this sample is not flexible enough to actually use.
1) The one combobox example initializes the box with hard coded strings and cannot be used for more than one box in the tree.
2) The placement of the initialization of the data in the DoDataExchange function doesn't make sense to me. I don't want the entire control to have to reinitialize everything every time there is a UdateData call.
3) I could not add the combobox and edit items as children, because there is no InsertItem function that will take an image index and the handle to the parent.
4) The image indexes are all hard coded, as is the resource ID of the actual tree.bmp file for the icons. It would take modifications to make this work as a more flexible class that could be used for more than one tree control in a project.
Now, in all fairness, my understanding of MFC is still rudimentary. I am impressed with the author's ability to even write this. I did learn some things from this sample.
I would be much more impressed if this class could be used to support more than one type of tree control.