Hi! My Tree-View control's child items insist in changing the icon when they get selected. Is there no way around this? I DONT want the icon to change.. When i insert the items i DONT add the TVIF_SELECTEDIMAGE constant to the flags.. still when i select a child the icon changes for the other one i have inside the image list. (they are two bmps) Any help is appreciated as usual. Thanks! Latigo
Posted on 2001-05-16 14:46:00 by latigo
in your TV_ITEM STRUCT the iImage iSelectedImage must have the same value if you don't want the tree view bitmap to change when you click on it.. eg.

mov tvinsert.item.iImage,0
mov tvinsert.item.iSelectedImage,0
invoke SendMessage,hwndTreeView,TVM_INSERTITEM,0,addr tvinsert
hope this can help
Posted on 2001-05-16 15:41:00 by ensein
Thanks very much ensein! ;) Latigo
Posted on 2001-05-17 10:10:00 by latigo