06-13-2016, 07:20 PM
Create imagelist with __ImageList class.
Add file icons (GetFileIcon/DestroyIcon) or item icons (__GetQmItemIcon/DestroyIcon) to the imagelist.
Assign the imagelist to the treeview control with message TVM_SETIMAGELIST or similar, don't remember exact name.
__ImageList variable lifetime must be >= dialog lifetime.
Add file icons (GetFileIcon/DestroyIcon) or item icons (__GetQmItemIcon/DestroyIcon) to the imagelist.
Assign the imagelist to the treeview control with message TVM_SETIMAGELIST or similar, don't remember exact name.
__ImageList variable lifetime must be >= dialog lifetime.