问题描述
您好,我已经实现了一个创建窗口的简单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.
推荐答案
这篇关于更改视觉样式时,Windows 8 Deskband无法正确绘制。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!