Windows XP:以编程方式更改背景颜色(更改注册表项后如何重新绘制桌面?) [英] windows xp: change background color programatically (how to redraw Desktop after changing registry key?)

查看:57
本文介绍了Windows XP:以编程方式更改背景颜色(更改注册表项后如何重新绘制桌面?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows XP上以编程方式更改背景/墙纸的颜色?我正在更改注册表项HKEY_CURRENT_USER \ Control Panel \ Colors \ Background(使用regedit),但是更改该键不会更改背景色,尽管从显示属性"窗口更改颜色时,该键也已更改.知道为什么吗?

How do I change the background/wallpaper color on Windows XP programatically? I'm changing the registry key HKEY_CURRENT_USER\Control Panel\Colors\Background (with regedit), but changing that key doesn't change the background color, although that key is changed when I change the color from the Display Properties window. Any idea why?

啊,如果我更改密钥并重新启动,效果将发生变化.那么,如何在不重新启动的情况下进行更改?

ah if I change the key and reboot, the effect takes change. So how do I make it take change without rebooting?

推荐答案

我认为您需要调用Windows API函数

I think you need to call the Windows API function SetSysColors.

这篇关于Windows XP:以编程方式更改背景颜色(更改注册表项后如何重新绘制桌面?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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