15,979
社区成员
发帖
与我相关
我的任务
分享
static int i = 0;
if (i%2 == 0)
{
TVITEM ti = {0};
ti.mask = TVIF_CHILDREN;
ti.cChildren = 1;
ti.hItem = m_hTree;
m_tree.SetItem(&ti);
i++;
}
else
{
TVITEM ti = {0};
ti.mask = TVIF_CHILDREN;
ti.cChildren = 0;
ti.hItem = m_hTree;
m_tree.SetItem(&ti);
i++;
}