11-18-2014, 05:13 PM
Quote:I think it begins with:
SendMessage htv TVM_SELECTITEM
Yes. But then need treeview item handle. You can store TV item handles in array a of user-defined type, or in another array. But this code adds TV items only for expanded folders. Enumerating folder+subfolders at startup would be slow.