How to get item colors from #CDDS_SUBITEMPREPAINT event
Posted: Sun Jan 11, 2004 2:16 pm
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
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