如何更改Windows表格标题的颜色? [英] How to change the color of Windows form header?

查看:63
本文介绍了如何更改Windows表格标题的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何更改Windows窗体标题的颜色(最小化,最大化,关闭)
从蓝色到其他颜色?

可以为表单标题颜色进行自定义渲染吗?

谢谢

Hi
How to change the color of Windows form header ( minimize , maximize , close)
from blue color to some other color ?

can we do Custom Rendering for form header color change?

Thanks

推荐答案

希望 link2 [
Hope Link1[^] and link2[^]might help you.


您可以使用win32api函数进行检查,但是我会告诉您,您将必须在非常低的级别上工作(我是说您将不得不重新排列H_Wind元素,依此类推),因此,如果您使用的是WinForms,则只需保留标头,或者您可以使用带有自定义标头的WPF窗口(在WPF中更容易做到)来托管winForms控件
You can check with win32api functions, but i would tell that you will have to work on very low levels(i mean you will have to re-arrange H_Wind elements and so on) so if you are using WinForms, just leave header as it is, or you can use WPF window with custom header(it is quite easier to do in WPF) to host winForms controls


请参见以下内容:

http://www.pcreview.co.uk/forums/change- color-title-bar-c-t1313448.html [ ^ ]
See the following :

http://www.pcreview.co.uk/forums/change-color-title-bar-c-t1313448.html[^]


这篇关于如何更改Windows表格标题的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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