SetWindowRgn使窗口完全不可见。 [英] SetWindowRgn causes windows invisible completely.

查看:153
本文介绍了SetWindowRgn使窗口完全不可见。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个创建一些圆角窗口的应用程序。这些窗口是通过在WM_SIZE的消息处理程序中调用SetWindowRgn来设置的。不知何故,在具有Aero模式的Windows 7上,有时窗口会在调整大小时完全变为隐形。即使您看不到它们,仍然可以单击透明窗口上的按钮。我查了一下这个地区是对的。单击以显示桌面然后返回后,无法恢复它们。  该应用程序用于屏幕共享,并且在问题出现时正在进行共享。


bigblueapple

I have an application which creates some round-corner windows. These windows is set by calling SetWindowRgn in the message handler of WM_SIZE. Somehow, on Windows 7 with Aero mode, sometimes the window turns to invisible completely while it's being resized. You can still click buttons on the transparent window even if you cannot see them. I checked the region and it's right. They can't be recovered after you click to show desktop and then go back.  The application is used for screen sharing, and the sharing is ongoing while the issue comes up.


bigblueapple

推荐答案

您好,

您是否在调用SetWindowRgn后尝试调用UpdateWindows?
http://msdn.microsoft.com/en-us/library/dd145167(VS.85).aspx

要解决这个问题,我们真的需要来源代码和重现问题的详细步骤,以便我们可以在本地调查此问题。您没有必要发送整个项目。我们只需要一个最简单的样本来重现问题。您可以从中删除任何机密信息或业务详细信息。

谢谢,
Rong-Chun Zhang
Hello,

Have you tried to call the UpdateWindows after you call SetWindowRgn?
http://msdn.microsoft.com/en-us/library/dd145167(VS.85).aspx

To troubleshoot this issue, we really need the source code and the detailed steps to reproduce the problem, so that we can investigate the issue locally. It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.

Thanks,
Rong-Chun Zhang


这篇关于SetWindowRgn使窗口完全不可见。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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