How to change color of CListCtrl column

前端 未结 3 1136
北荒
北荒 2021-01-23 16:06

I want to change the background color of a specific column to a color of the dialog (grey). How can I achive it?

void CUcsOpTerminalDlg::OnCustomdrawFeatureList(         


        
3条回答
  •  北荒
    北荒 (楼主)
    2021-01-23 16:46

    Short answer: Fill the clrText and clrText Bk fields in the CDDS_ITEMPREPAINT phase.

    Best article I ever read about this. Part 1, Part 2

提交回复
热议问题