msdn中的解释是折叠并删除子项,但是我用下面的代码使用,没发现有什么变化
m_tree.Expand(hRoot,TVE_COLLAPSERESET);请高手实例说明一下其它的三个选项如:TVE_EXPAND都好理解

解决方案 »

  1.   

    This flag must be used with the TVE_COLLAPSE flag
      

  2.   

    TVE_COLLAPSERESETCollapses the list and removes the child items. The TVIS_EXPANDEDONCE state flag is reset. This flag must be used with the TVE_COLLAPSE flag.如果你用过TVIS_EXPANDEDONCE,一定知道 state中有个位是标记 是否展开过 用的.上面就是清除这个标记位用的
      

  3.   

    TVE_COLLAPSERESETCollapses the list and removes the child items. The TVIS_EXPANDEDONCE state flag is reset. This flag must be used with the TVE_COLLAPSE flag.如果你用过TVIS_EXPANDEDONCE,一定知道 state中有个位是标记 是否展开过 用的.上面就是清除这个标记位用的