Reputation:
How do you change the text color of a Clistctrl item (report view)?
Upvotes: 2
Views: 10258
Reputation: 4335
I would implement a CMFCListCtrl
derived class and override the OnGetCellTextColor
method. Things are much easier this way than with custom draws.
Upvotes: 0
Reputation: 43575
You need to handle the NM_CUSTOMDRAW message and change the text color in that handler.
For an example, see this article.
Upvotes: 11