Win32的:列表视图组标题文字颜色 [英] Win32: List View Group Header Text Color

查看:354
本文介绍了Win32的:列表视图组标题文字颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows中,一个列表视图可以有它的项目分组,如下图:

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

我的应用程序采用了白色的黑色的GUI。大多数控件(按钮,编辑字段,检查盒等),我创建了自己,但我是那种在Windows列表视图控件的喜欢,所以我想用它。为此,我设置背景色为黑色,文本颜色为白色,以获得

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

不过,我似乎无法找到改变组标题的文本颜色的一种方式。这是由主题控制的,所以它绝不是显而易见的,它甚至的可以的改变,但我相信,你们都看到了我的需要:默认的蓝色外观在黑色背景上可怕的。

However, I cannot seem to find a way of changing the text colour of the group header. This is controlled 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.

所以:有chaning列表视图组标题的文本颜色的任何手段

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

推荐答案

如果你在XP上运行,你可以设置通过 LVGROUPMETRICS 结构组头的颜色。但是从你的屏幕截图,你显然是在Vista或更高版本。不幸的是,XP后,此消息不执行任何操作。

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.

这篇关于Win32的:列表视图组标题文字颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆