Tutorial :Clistctrl item text color



Question:

How do you change the text color of a Clistctrl item (report view)?


Solution:1

You need to handle the NM_CUSTOMDRAW message and change the text color in that handler.

For an example, see this article.


Solution:2

I would implement a CMFCListCtrl derived class and override the OnGetCellTextColor method. Things are much easier this way than with custom draws.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »