开发者

Win32: List View Group Header Text Color

In Windows, a List View can have its items grouped, as in the following picture:

Win32: List View Group Header Text Color

My application employs a white-on-black GUI. Most of the controls (buttons, edit fields, check-boxes etc.) I have created myself, but I am kind of fond of the Windows List View control, so I want to use it. To this end, I set the background colour to black and the text colour to white, to obtain

Win32: List View Group Header Text Color

However, I cannot seem to find a way of changing the text colour of the group header. This is con开发者_JS百科trolled by the theme, so it is by no means obvious that it even can be changed, but I am confident that you all see my need: The default blue color looks horrible on a black background.

So: Is there any means of chaning the text colour of a List View group header?


If you are running on XP, you can set the group header color through the LVGROUPMETRICS structure. But from your screen shots, you are obviously on Vista or later. Unfortunately, after XP, this message does nothing.

So, sorry, no, there is nothing you can do to change the color. You can't even owner draw them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜