Bright scrollbars in dark mode

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Bright scrollbars in dark mode

Post by *ghisler(Author) »

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.
Author of Total Commander
https://www.ghisler.com
User avatar
yiuimex
Junior Member
Junior Member
Posts: 62
Joined: 2019-03-28, 08:02 UTC

Re: Bright scrollbars in dark mode

Post by *yiuimex »

ghisler(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.
THX, i will try this :D
Post Reply