Vista 下 MDI 窗口的玻璃外观
我正在 VS 2008 中用 C# 开发 winforms MDI 应用程序。 我注意到 MDI 窗体在 Vista 下没有玻璃外观。
这是设计使然吗? 有没有一种简单的方法可以让这些窗户的玻璃看起来更漂亮?
I am developing a winforms MDI application in C# in VS 2008.
I have noticed that the MDI forms don't have the glass look under Vista.
Is this by design?
Is there a simple way to get the glass look for these windows?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

默认情况下,WinForms(或 WPF 应用程序)上不启用玻璃。 启用 glass 的唯一方法是 PInvoke 到本机 API 中。 这个频道 9 网站为一个很棒的实用程序提供了一个教程,可以让您轻松地将 Glass 效果添加到您的控件中。
http://channel9.msdn.com/playground/Sandbox/201158/
By default glass is not enabled on WinForms (or for that matter WPF applications). The only way to enable glass is to PInvoke into native API's. This channel9 site does a tutorial for a great utility that makse it trivial to add Glass effects to your controls.
http://channel9.msdn.com/playground/Sandbox/201158/