void clearAll (int hItem, TVITEM tvItem, boolean all) { while (hItem != 0) { clear (hItem, tvItem); int hFirstItem = OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_CHILD, hItem); if (all) clearAll (hFirstItem, tvItem, all); hItem = OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_NEXT, hItem); }
public void clearAll (boolean all) { checkWidget (); int hItem = OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_ROOT, 0); if (hItem == 0) return; TVITEM tvItem = new TVITEM (); tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_PARAM; clearAll (hItem, tvItem, all);
void clearAll (int hItem, TVITEM tvItem, boolean all) {	while (hItem != 0) {		clear (hItem, tvItem);		int hFirstItem = OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_CHILD, hItem);		if (all) clearAll (hFirstItem, tvItem, all);		hItem = OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_NEXT, hItem);	}}