How do you change the text color of a Clistctrl item (report view)?
You need to handle the NM_CUSTOMDRAW message and change the text color in that handler.
For an example, see this article.
I would implement a CMFCListCtrl
derived class and override the OnGetCellTextColor
method. Things are much easier this way than with custom draws.
来源:https://stackoverflow.com/questions/700271/clistctrl-item-text-color