Sorry for reply so late.
I test with 1,000,000 items within tree control, it seems it never ends.
With 100,000 items it is also slow.
my code is below:
char tag[256];
char label[256];
int index;
ClearListCtrl(panelhandle, P_TREE);
index = 0;
for(int i = 0; i<1000; i++)
{
for (int j=0; j<1000; j++)
{
sprintf(label, "%d", i*200+j);
index = InsertTreeItem(ph_panelhandle, P_TREE, VAL_SIBLING, index, VAL_LAST,
label, "", tag, -1);
}
}