更改视觉样式时,Windows 8 Deskband无法正确绘制。 [英] Windows 8 Deskband not drawing correctly when changing visual styles.

查看:91
本文介绍了更改视觉样式时,Windows 8 Deskband无法正确绘制。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我已经实现了一个创建窗口的简单Deskband。我在窗口上使用DrawThemeParentBackground(...)来响应WM_PAINT或WM_ERASEBKGND,因此窗口应该与任务栏混合。如果我从一个默认的Windows主题
更改为另一个,它可以正常工作。如果我然后更改为"高对比度白色"它按预期工作。但是,如果我然后改为"高对比度黑色"则存在问题,即窗口保持白色。如果我然后改回"高对比度白色"窗口被绘制为黑色的
等等。这是一个已知的问题,是否可以修复?感谢您的任何信息。

Hello, I have implemented a simple Deskband that creates a window. I use DrawThemeParentBackground(...) on the window in response to WM_PAINT or WM_ERASEBKGND so the window should blend in with the Taskbar. If I change from one default Windows Theme to another it works fine. If I then change to 'High Contrast White' it works as expected. However, if I then change to 'High Contrast Black' there is a problem i.e. the window remains white. If I then change back to 'High Contrast White' the window is drawn in black etc. Is this a known issue and can it be fixed? Thank you for any info on this.

推荐答案

我在处理WM_THEMECHANGED消息时发现调用RedrawWindow(...)工作正常。
I found Calling RedrawWindow(...) when processing the WM_THEMECHANGED message works fine.


这篇关于更改视觉样式时,Windows 8 Deskband无法正确绘制。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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