天天看點

如何擷取樹節點目前是折疊還是展開狀态

UINT nstate = GetTreeCtrl().GetItemState(hParentS, TVIS_EXPANDED);

if ((nstate & TVIS_EXPANDED) != 0) //展開的

{}