haley
haley

Reputation:

Clistctrl item text color

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

Upvotes: 2

Views: 10258

Answers (2)

sergiol
sergiol

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

Stefan
Stefan

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

Related Questions