Steven,
Looks to me as a another bug.
Will further check.
For the moment you can use hpwTreeViewSetAllImageIndex and hpwTreeViewSetAllSelectedIndex to set them after creating.
>This might be a silly question but how can I generate a file list as you did from a top level folder?
This file was send to me by a treeview user with a question how to bring it in the treeview. Your question come up some times:
For example:
http://www.neosoftware.com/forum/viewto ... t=filelist
So there are different approaches: native script and plugin-based
Since I avoid to double functions currently available from other plugins, you can try them.