I've noticed that the CTreeCtrl only sends a TVN_ITEMEXPANDING notification to it's parent on the first call. Any subsequent calls to this function on the same node do not send the notification.
I'm lazily populating the tree, so I need this notification in order to load the children of the item being expanded. Do I need to and the message handler in a derived CTreeCtrl class in order to forward this notification to it's parent? It seems as though that's a bit tedious, or do I need to somehow reset a flag when the node is collapsed to make it think it's it first time being expanded?
I'm lazily populating the tree, so I need this notification in order to load the children of the item being expanded. Do I need to and the message handler in a derived CTreeCtrl class in order to forward this notification to it's parent? It seems as though that's a bit tedious, or do I need to somehow reset a flag when the node is collapsed to make it think it's it first time being expanded?