简体   繁体   中英

ListView disabled background color

Hi I draw my items in a ListView by myself ( OwnerDraw = true ). I don't use DrawDefault = true as I want to have consistent appearance in all styles (Windows Classic, Aero, etc). Now I have the problem that I have to draw the background even if the ListView is disabled. And I can't find the right color for that. The disabled background color of the item should fit the background color of the ListView dependent of the user selected style in Windows. Any ideas how to get this color? Thanks in advance.

I was looking for it, too. It is static member of ListView class: ListView.DefaultBackColor .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM