Merge pull request #2841 from RaiKoHoff/Dev_NewFeatures

Bring back themed ReBar (Toolbar parent) for Win7
This commit is contained in:
Rainer Kottenhoff 2020-09-17 14:04:38 +02:00 committed by GitHub
commit c3cd15bde1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2672,7 +2672,7 @@ void CreateBars(HWND hwnd, HINSTANCE hInstance)
0,0,0,0,hwnd,(HMENU)IDC_REBAR,hInstance,NULL);
// Theme = false (!) ~ you cannot change a toolbar's color when a visual style is active
InitWindowCommon(Globals.hwndRebar, false);
InitWindowCommon(Globals.hwndRebar, !(IsWindows10OrGreater() && IsDarkModeSupported()));
#ifdef D_NP3_WIN10_DARK_MODE
if (IsDarkModeSupported()) {