On Thu Aug 15 13:30:19 2024 +0000, Zhiyi Zhang wrote:
Have you tried TVE_COLLAPSE | TVE_COLLAPSERESET? See https://learn.microsoft.com/en-us/windows/win32/controls/tree-view-control-i... regarding TVIS_EXPANDEDONCE
TVE_COLLAPSE | TVE_COLLAPSERESET doesn't seem to work either. I could try resetting the flag manually, although it does say it will result in unpredictable behavior.