Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CTreeCtrl::Expand() sends TVN_ITEMEXPANDING once

Status
Not open for further replies.

Vachaun22

Programmer
Oct 7, 2003
171
0
0
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top