Win32:我如何设置窗口标题,滚动条等的颜色? [英] Win32: How can i set the color of windows Title, Scrollbar etc.?

查看:2139
本文介绍了Win32:我如何设置窗口标题,滚动条等的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在黑色背景上以白色文字更新Win32应用程序的GUI。这是简单的我的内容。但是我怎么能改变我的子窗口的颜色(标题栏,滚动条等)。我知道有 WM_CTLCOLORDLG 设置对话框的颜色。我也知道有 WM_NCPAINT ,但这将把所有的画(即滚动条)给我。所有我想要的,是设置我的选择的颜色。

I am updating a GUI of a Win32 Application in white text on black background. Thats simple for my content. But how can i change also the color of my child windows (Titlebar, Scrollbar etc.). i Know there is WM_CTLCOLORDLG to set the color of Dialogs. I also know there is WM_NCPAINT, but that would leave all painting (i.e of Scrollbars) to me. All i want, is to set colors of my choice.

推荐答案

Hook GetSysColor()(使用Microsoft Detours之类的东西)

Hook GetSysColor() (Using something like Microsoft Detours)

这篇关于Win32:我如何设置窗口标题,滚动条等的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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