Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 WinAPI 时有没有办法获得菜单条而不是 HMENU?喜欢 .Net 应用程序使用的菜单吗?因为 HMENU 不适合我的配色方案,所以我需要一个更暗的菜单。
谢谢
如果您不喜欢系统默认设置,您可以自行绘制菜单。如果你只需要支持 Windows Vista 及更高版本,你可以按照这篇文章。否则,您需要在菜单项上调用ModifyMenu()并设置 MF_OWNERDRAW 以及随之而来的所有内容。