如何更改 Windows 7 菜单的外观? [英] How can i change the appearance of Windows 7 menus?

查看:28
本文介绍了如何更改 Windows 7 菜单的外观?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Win32 应用程序在 Win 7 上运行时显示如下所示的菜单:

My Win32 Application displays Menus as shown when running on Win 7:

这是 Windows 7 和 Windows 7 Aqua 主题的默认设置.请注意,所选菜单条目与其他条目仅略有不同.我认为它的突出显示太少了,因此我正在寻找一种方法来为所选条目提供不同的颜色.但不幸的是,所有修改菜单颜色的可能性在 Windows 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.

但令人惊讶的是,Microsoft 自己的应用程序看起来与众不同.IE.油漆具有不同的菜单颜色和外观:

But amazingly Microsoft's own applications look different. I.e. Paint has different color and appearance of menus:

这具有良好的对比度,并且比 Win32 应用程序的默认设置要好得多.Visual Studio 2010 看起来也不同:

This has good contrast and is much better than the default for a Win32 application. Also Visual Studio 2010 looks different:

我知道 VS 2010 是基于 WPF 构建的.我不知道在油漆中使用的色带是否以及如何影响菜单外观.我的菜单是使用 SetMenu() 动态设置的;

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();

我的问题:有什么方法可以使用 API 或清单或资源来更改我的应用程序菜单的外观?或者有没有办法在Windows 7中通过设置修改选中菜单项的颜色?

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?

推荐答案

您可以制作自己的用户绘制菜单.例如,看看这篇 CodeProject.com 文章:http://www.codeproject.com/KB/menus/newmenuxpstyle.aspx

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

此外,VS 2010 并非完全基于 WPF - 仅基于代码编辑器.

Also, VS 2010 is not entirely built on WPF - only the code editor.

这篇关于如何更改 Windows 7 菜单的外观?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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