How to get item colors from #CDDS_SUBITEMPREPAINT event

Everything else that doesn't fall into one of the other PB categories.
Denis
Enthusiast
Enthusiast
Posts: 779
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

How to get item colors from #CDDS_SUBITEMPREPAINT event

Post by Denis »

when you process #CDDS_SUBITEMPREPAINT (for listicongadget after responding of the previous #CDDS_PREPAINT And #CDDS_ITEMPREPAINT msg), you put the colors of items with the values clrTextBk and clrText of the NMLVCUSTOMDRAW structure pointed by lParam.

I'm wrinting new functions for my lib but i have a problem to get correctly the colors of the current item.

Most of the time, clrTextBk And clrText are setting with #CLR_DEFAULT value. GetTextColor and GetBkColor API don't work. I read a lot of examples from programming sites but i saw no answer.

does somebody have an idea?


Denis
A+
Denis