如何更改 Windows 7 菜单的外观?
我的 Win32 应用程序在 Win 7 上运行时显示菜单,如下所示:
这是 Windows 7 和 Windows 7 Aqua 主题的默认设置。 请注意,所选菜单条目与其他条目仅略有不同。我认为它的突出显示太少了,因此我正在寻找一种方法来为所选条目提供不同的颜色。但不幸的是,所有修改菜单颜色的可能性在 Windows 7 中都消失了。在窗口颜色对话框中进行的设置对菜单无效。
但令人惊讶的是,微软自己的应用程序看起来有所不同。 Ie Paint 具有不同的颜色和菜单外观:
这具有良好的对比度,比 Win32 的默认值要好得多应用。 Visual Studio 2010 看起来也有所不同:
我知道 VS 2010 是基于 WPF 构建的。我不知道油漆中使用的功能区是否以及如何影响菜单外观。我的菜单是使用 SetMenu() 动态设置的;
我的问题:有没有办法使用 API 或者清单或资源来更改应用程序菜单的外观? 或者有没有办法通过设置修改Windows 7中所选菜单项的颜色?
My Win32 Application displays Menus as shown when running on Win 7:
This is the Default for the themes Windows 7 as well as Windows 7 Aqua.
Please note that the selected menu entry is only slightly different from the other entries. I think it is much too less highlighted and therefore i am looking for a way to give the selected entry a different color. But unfortunately all possibilities to modify menu colors disappeared in Windows 7. The settings made in the window color dialog are non effective for menus.
But amazingly Microsoft's own applications look different. I.e. Paint has different color and appearance of menus:
This has good contrast and is much better than the default for a Win32 application.
Also Visual Studio 2010 looks different:
I know that VS 2010 is build on WPF. I don't know if and how the ribbon, used in paint influences the menu appearance. My menus are set up dynamically using SetMenu();
My Question: Is there any way to change the appearance of my applications menu using a API or maybe a manifest or resource?
Or is there a way to modify the color of the selected menu entry in Windows 7 through settings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以制作自己的用户绘制菜单。例如,请查看这篇 CodeProject.com 文章: http://www.codeproject .com/KB/menus/newmenuxpstyle.aspx
另外,VS 2010 并不完全基于 WPF 构建 - 只是代码编辑器。
You can make your own user drawn menus. For an example, take a look at this CodeProject.com article: http://www.codeproject.com/KB/menus/newmenuxpstyle.aspx
Also, VS 2010 is not entirely built on WPF - only the code editor.