Re: treeview item's icon changed to dark when it was cutted
I've never been able to get TVIS_CUT to work that's why I was suggesting a
possible alternative. Could be that there is something in that style that
is or'ing the icon or something to try to dim it out and it just isn't
working correctly. You may be able to try to draw the disabled tree items
using something like in these articles:
http://www.codeguru.com/Cpp/controls/treeview/misc-advanced/article.php/c633
http://www.codeproject.com/KB/tree/colortreectrl.aspx
Tom
<wei.niu@gmail.com> wrote in message
news:abc871b8-7bd6-46da-b8e7-771d9f805289@z24g2000prf.googlegroups.com...
On 4$B7n(B23$BF|(B, $B2<8a(B8$B;~(B34$BJ,(B, "Tom Serface" <tom.nos...@camaswood.com> wrote:
I haven't had much luck with that one either. You could try to use
custom
draw to change your fonts on selected items:
http://msdn2.microsoft.com/en-us/library/bb775487(VS.85).aspx
Here is an article using a list view and you could adapt this information
to
the tree view:
http://www.codeproject.com/KB/combobox/lvcustomdraw.aspx
Tom
Thank you,Tom.
As my trouble is the treeview item's icon changed to a black square
after I cutted it,I don't need redraw the item,I just need to set the
item's icon through TreeView_SetItem.My question is: it looks like the
function of setting item's state to TVIS_CUT is only changing the
item's icon,so can I control how the icon would be changed?At least,I
don't want it changed to be a black square.