Сколько всего li_count = Send(handle(treeview_control), 4357, 0, 0) Сколько в видимой области li_count = Send(handle(treeview_control), 4368, 0, 0)