How to change the CListCtrl control's Header(column) background color
-
Hi group Can anybody help me out I want to change the background color of the header(column tab)in the ListControl Actually i am doing a project in VC++ I am able to change the background color of the CListCtrl but i failed to change the color of the header tab, so can anybody help me out VC++ vcforums@gmail.com
-
Hi group Can anybody help me out I want to change the background color of the header(column tab)in the ListControl Actually i am doing a project in VC++ I am able to change the background color of the CListCtrl but i failed to change the color of the header tab, so can anybody help me out VC++ vcforums@gmail.com
Hi, you need to owner-draw the complete headercontrol to do so, which means: - subclass the header control that is a child of the listcontrol in its PreSubclassWIndow handler - for every button in the headercontrol set the HDF-OWNERDRAW flag - draw the button in the DrawItem handler takes only some 100 lines of code... dirk