首页 > 解决方案 > MFC: CListCtrl background color of first row?

问题描述

When I create an MFC project, I add a dialog (IDD_DIALOG1) with CListCtrl of Report style. But when I test it, I see that its first row does not have grayish background.

enter image description here

However, this project "https://www.codeproject.com/Articles/608/Using-the-List-Control" has (note the row with "Item Name" etc). When I read its code, I cannot tell which part makes the difference.

enter image description here

My code is pretty much skeleton but can be accessed here "https://138.197.210.223/test/My.zip" if interested.

标签: visual-studiovisual-c++mfc

解决方案


推荐阅读