ysc3839 / win32-darkmode

Example application shows how to use undocumented dark mode API introduced in Windows 10 1809.
MIT License
446 stars 49 forks source link

How to make menubar dark? #14

Closed kitepad closed 3 years ago

kitepad commented 3 years ago

I build demo using vs 2019 community and test it on win 10 (buildnumber = 19042, add it as supported). Test result is ok for demo excerpt menubar are light , menu items are darked.

Because of we don't have 19041 env, is it same light in 19041? If yes, how to make it dark?

ysc3839 commented 3 years ago

Because Microsoft doesn't provide a dark menu bar. The only way to make it dark is to owner draw.

adzm commented 3 years ago

I actually figured out how to custom draw the menubar even with themes enabled, using some undocumented window messages and structures, but this whole project is that so I imagine that part is not a problem. https://github.com/adzm/win32-custom-menubar-aero-theme

adzm commented 3 years ago

Also PR #17 adds this to the sample application