How do you gray out icons in a tree view? I'm trying to use overlay but I'm pretty confused. Is overlay the normal method? I figured I could just create a second version of every icon in grayscale but I'm pretty sure that isn't the proper way.
Right now I have
il.Create(16,16, ILC_COLOR4 | ILC_MASK 0 ,64);
il.Add(&tree,&overlay); //by using this version of Add my images don't have transparent sections
Later on when I want to overlay the image I do this:
treeCtrl.SetItemState(current, INDEXTOOVERLAYMASK(1), TVIS_OVERLAYMASK);
What else do I need to get this to work?