On Thu Aug 15 13:12:12 2024 +0000, Jacob Czekalla wrote:
I tried sending TVE_COLLAPSE, but it didn't work because of the TVIS_EXPANDEDONCE flag. The TVN_ITEMEXPANDING message was not getting sent.
Have you tried TVE_COLLAPSE | TVE_COLLAPSERESET? See https://learn.microsoft.com/en-us/windows/win32/controls/tree-view-control-i... regarding TVIS_EXPANDEDONCE