Hi there,
I'm lost here with this and hope I can get help from the experts.
I try to change treeview images with the overlay image feature but
it don't work for me.
Here's a code snippet.
'## some initializiations
hImage = ImageList_Create(16, 16, %ILC_COLOR4, 4, 0)
ImageList_Add hImage, LoadImage(hInst, "cfldr", %IMAGE_BITMAP, 0, 0, %LR_DEFAULTSIZE), 0 'index 0
ImageList_Add hImage, LoadImage(hInst, "ofldr", %IMAGE_BITMAP, 0, 0, %LR_DEFAULTSIZE), 0 'index 1
ImageList_Add hImage, LoadImage(hInst, "file", %IMAGE_BITMAP, 0, 0, %LR_DEFAULTSIZE), 0 'index 2
ImageList_Add hImage, LoadImage(hInst, "sfull", %IMAGE_BITMAP, 0, 0, %LR_DEFAULTSIZE), 0 'index 3
ImageList_SetOverlayImage hImage, 3, 1
SendMessage hTree, %TVM_SETIMAGELIST, %TVSIL_NORMAL, hImage
'## try to set the overlay image here
pItem.hItem = TreeView_GetSelection(hTree)
pItem.mask = %TVIF_HANDLE OR %TVIF_STATE
pItem.statemask = %TVIS_OVERLAYMASK
pItem.state = INDEXTOOVERLAYMASK(1)
TreeView_SetItem hTree, pItem
Images are all in the resource as well so thats not the problem. As you
can see I select the 4(3) Image from the Image list as an overlay
image and set it to overlaymask 1.
Oh, this is PBDLL 6.0 I'm working with.
Any comments will help
Many thanks ahead.
Thomas Noelker
------------------
[email protected]
I'm lost here with this and hope I can get help from the experts.
I try to change treeview images with the overlay image feature but
it don't work for me.
Here's a code snippet.
'## some initializiations
hImage = ImageList_Create(16, 16, %ILC_COLOR4, 4, 0)
ImageList_Add hImage, LoadImage(hInst, "cfldr", %IMAGE_BITMAP, 0, 0, %LR_DEFAULTSIZE), 0 'index 0
ImageList_Add hImage, LoadImage(hInst, "ofldr", %IMAGE_BITMAP, 0, 0, %LR_DEFAULTSIZE), 0 'index 1
ImageList_Add hImage, LoadImage(hInst, "file", %IMAGE_BITMAP, 0, 0, %LR_DEFAULTSIZE), 0 'index 2
ImageList_Add hImage, LoadImage(hInst, "sfull", %IMAGE_BITMAP, 0, 0, %LR_DEFAULTSIZE), 0 'index 3
ImageList_SetOverlayImage hImage, 3, 1
SendMessage hTree, %TVM_SETIMAGELIST, %TVSIL_NORMAL, hImage
'## try to set the overlay image here
pItem.hItem = TreeView_GetSelection(hTree)
pItem.mask = %TVIF_HANDLE OR %TVIF_STATE
pItem.statemask = %TVIS_OVERLAYMASK
pItem.state = INDEXTOOVERLAYMASK(1)
TreeView_SetItem hTree, pItem
Images are all in the resource as well so thats not the problem. As you
can see I select the 4(3) Image from the Image list as an overlay
image and set it to overlaymask 1.
Oh, this is PBDLL 6.0 I'm working with.
Any comments will help
Many thanks ahead.
Thomas Noelker
------------------
[email protected]
Comment