Changing ListCtrl Headers color
-
Hi, i'm working on the desing of my application and i would like to have my ListCtrls Headers in blue instead of the windows gray, how can i change it? I checked the SetColumn function with the struct _LVCOLUMN, but i don't fit to my intents, should i use a appropriate class for the effect, maybe derived from CHeaderCtrl? Thank you in advance
-
Hi, i'm working on the desing of my application and i would like to have my ListCtrls Headers in blue instead of the windows gray, how can i change it? I checked the SetColumn function with the struct _LVCOLUMN, but i don't fit to my intents, should i use a appropriate class for the effect, maybe derived from CHeaderCtrl? Thank you in advance
Header controls support custom draw. This is your chance... Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
-
Header controls support custom draw. This is your chance... Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
Well, thank you Tomasz but, i'm kind of new using ListCtrls and to VC++, how exactly should i do this?
-
Well, thank you Tomasz but, i'm kind of new using ListCtrls and to VC++, how exactly should i do this?
You'll need to handle NM_CUSTOMDRAW notification for header control. For a start, check articles in listview section of CP - they demonstrate how to use custom draw for list itself. I've searched the articles for example of custom-drawn header, but it seems there aren't any yet. Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
-
Well, thank you Tomasz but, i'm kind of new using ListCtrls and to VC++, how exactly should i do this?
BTW: there's another technique you could use - owner draw. In this case, you'd have to subclass the header control and override the CHeaderCtrl::DrawItem method. Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
-
BTW: there's another technique you could use - owner draw. In this case, you'd have to subclass the header control and override the CHeaderCtrl::DrawItem method. Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
I was out to luch, i'll try those, thank you very much