WM_CTLCOLOR* doesn't seem to work when using themes, at least for the non-client area.
On Windows 10 1809 and newer, the folliwing causes dark scrollbars:
SetWindowTheme(handle,"DarkMode_Explorer",NULL);
On older versions, I have to subclass the control and overdraw the scrollbars with my own.
Bright scrollbars in dark mode
Moderators: white, Hacker, petermad, Stefan2
- ghisler(Author)
- Site Admin
- Posts: 48021
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Bright scrollbars in dark mode
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Bright scrollbars in dark mode
THX, i will try thisghisler(Author) wrote: ↑2019-12-16, 11:20 UTC On Windows 10 1809 and newer, the folliwing causes dark scrollbars:
SetWindowTheme(handle,"DarkMode_Explorer",NULL);
On older versions, I have to subclass the control and overdraw the scrollbars with my own.