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
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.
hope this can help
LOCAL tvinsert:TV_INSERTSTRUCT .. mov tvinsert.item.iImage,0 mov tvinsert.item.iSelectedImage,0 .. invoke SendMessage,hwndTreeView,TVM_INSERTITEM,0,addr tvinsert
Thanks very much ensein! ;) Latigo