Hi @a b
After reading your latest comment, I understand your needs.
Support Dark and Light themes in Win32 apps
This article provides a complete introduction,
- How to detect the current theme of the system (Dark or Light) ;
- How to use
DwmSetWindowAttribute
.
Thank you.
Junjie
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Thanks!
Can I set DWMWA_CAPTION_COLOR to any color (dark or light) and expect Windows adjust any related title bar visuals (like text color) accordingly without use of DWMWA_USE_IMMERSIVE_DARK_MODE? It seems that this is what Windows does but it isn't documented either. I'm asking because DWMWA_USE_IMMERSIVE_DARK_MODE sets title bar background to black and that's not exactly what I want (I need it to match my window background color).
Hi @a b ,
It's been a few days, may my answer help you?
It did help, thank you!
Sign in to comment