C/C++/C#:如何在 Windows 7 上强制重新绘制窗口镶边?
我的应用程序有一个标准的应用程序顶级窗口。我需要强制重新绘制窗口镶边(也称为窗口的非客户区域)。我不在乎客户区域是否也重新绘制,但镀铬本身需要强制重新绘制。
特别是我需要它在 Windows 7 上工作。在我的特定情况下,它是否在其他操作系统版本上工作并不重要。解决方案可以是 C、C++、C# 或任何其他语言。
My application has a standard top level window for the application. I need to force a repaint of the window chrome (otherwise known as the non-client area of the window). I do not care if the client area is also repainted or not but the chrome itself needs to be forced to repaint.
In particular I need this to work on Windows 7. Whether it works on other OS versions does not matter in my particular case. The solution can be C, C++, C# or any other language.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据MSDN,似乎
就是这样你正在寻找。
According to MSDN, it seems that
is what you are looking for.
也许您可以将 WM_NCPAINT 消息发送到窗口
http: //msdn.microsoft.com/en-us/library/dd145212%28VS.85%29.aspx
maybe you could send the WM_NCPAINT message to the window
http://msdn.microsoft.com/en-us/library/dd145212%28VS.85%29.aspx