CListCtrl 控件设置背景颜色、字体背景颜色、字体颜色

HBRUSH CInfoStationDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)

{

CListCtrl m_listCtrlSign;//CListCtrl 控件变量;

m_listCtrlSign.SetBkColor( RGB(199, 237 , 204) );

m_listCtrlSign.SetTextBkColor( RGB( 199, 237 , 204 ));

m_listCtrlSign.SetTextColor( RGB( 0, 0 , 0

));

}

原文地址:https://www.cnblogs.com/chenzuoyou/p/3127958.html