treeview check box color ?
-
Greetings... I have custom draw treeview control. I am able to change the default color of the treeview by using the following code : case NM_CUSTOMDRAW : case CDDS_CUSTOMDRAW: return CDDS_ITEMPAINT: case CDDS_ITEMPAINT: /* changing the color of the text here */ How can I trap the drawing of the checkbox so that i can chage the color in which the check box is drawn ? Please help... Ritesh
-
Greetings... I have custom draw treeview control. I am able to change the default color of the treeview by using the following code : case NM_CUSTOMDRAW : case CDDS_CUSTOMDRAW: return CDDS_ITEMPAINT: case CDDS_ITEMPAINT: /* changing the color of the text here */ How can I trap the drawing of the checkbox so that i can chage the color in which the check box is drawn ? Please help... Ritesh
insanely420 wrote: How can I trap the drawing of the checkbox so that i can chage the color in which the check box is drawn ? Why bother? Just draw some nice looking checkbox icons or bitmaps & put them in the tree's state item image list (
TVSIL_STATE
). That's where the default ones come from :)Shog9 --
Maybe Java is kind of like God, it "works in mysterious ways". It seems like your apps are running slowly, because in the backgroud Java is solving world hunger, or finding the cure to cancer. - Ryan Johnston, Don't die java!