Re: ListView Selection Bar Color
- Posted by C Bouzy <eucoder at hotmail.com> Dec 07, 2005
- 504 views
Using SkinCrafter and other similar skin libs allows you to do this with ease, the problem is SkinCrafter currently does not support customizing the selection bar in ListViews. It does support customizing the selection bar in a plain list control. I never understood why Windows did not allow the customizing of all controls without going through the trouble of owner draw controls. From what I hear Windows Vista will allow better customizing of controls. > Hi there, > > I've always found it strange what Windows API "Lets" you change and what > it doesnt. It's like someone has to sit down one day and say: > "ok, we wont let them change the color of this because we dont think > it should change and what we think is better than what anybody else > thinks". > Strange too, because somewhere in the system dll it has to do: > color=GetSystemColor(x) > to get the color. One more stinky little function call: > SetBarColor(color) > and you could set the bar color of any control that has a selection > bar, but noooo that would be too good :) > Are they afraid someone will set it to the same color as the text and > then the text wont be visible? I could think of a million other ways > to screw up an app and they havent been afraid of that, and they sure > weren't afraid of hackers when surfing with IE he he. > > Perhaps in Windows9000 op sys you'll be able to do it :) >