Thanks for the fast reply.
I tried setting the imagelist directly with
Code: Select all
buffer = TreeView_SetImageList(tvwUnicodeResult.hWnd, ImgNodePicture.hImageList, TVSIL_NORMAL)
...
Public Function TreeView_SetImageList(hWnd As Long, himl As Long, iImage As Long) As Long
TreeView_SetImageList = SendMessage(hWnd, TVM_SETIMAGELIST, ByVal iImage, ByVal himl)
End Function
and the return value is 0. The hImageList property remains 0 although :/. The themes are the same (WinXP with Silver theme).
After all I tried checking the mscomctl.ocx files. Well, they differ. I swapped the file from the test machine (build date of the file 2002) with the file from my dev machine (build date of the file 2004) and it works. Thanks for the tip
Regarding the ImageList* API, do you have any hintfull links on that topic?