Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I got a question in vc++ to display some data in several listcontrol.For that I created listcontrol dynamicaly and apply background color.When I insert values to listcontrol it should provide uniform backgroun color.I want to insert data in column header as well.But when we insert value to column header and text fields it will be in different color(color for header is different from color for text field).I have to change the color of header column so that whole listcontrol will be in uniform color.How can i change column color of listcontrol.See i am a new comer in vc++.Plzzz hlp...
Posted

1 solution

Try to use custom drawing. http://msdn.microsoft.com/en-us/library/bb761817(v=vs.85).aspx[^]

If custom draw doesn't help, you can try owner drawing http://msdn.microsoft.com/en-us/library/bb158680.aspx[^]
 
Share this answer
 
Comments
Albert Holguin 17-Jun-11 13:54pm    
you can do just about anything you want with owner draw... but you have to draw everything yourself (sometimes I wish MS would've made the controls more controllable!)... my 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900