mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
Refresh desktop properties on WM_DWMCOLORIZATIONCOLORCHANGED (JBR-2070)
(cherry picked from commit 06086f4a7e)
This commit is contained in:
committed by
Vitaly Provodin
parent
a283748561
commit
98e5289b7f
@@ -1014,6 +1014,14 @@ LRESULT CALLBACK AwtToolkit::WndProc(HWND hWnd, UINT message,
|
||||
}
|
||||
// Remove this define when we move to newer (XP) version of SDK.
|
||||
#define WM_THEMECHANGED 0x031A
|
||||
|
||||
#ifndef WM_DWMCOMPOSITIONCHANGED
|
||||
#define WM_DWMCOMPOSITIONCHANGED 0x031E
|
||||
#define WM_DWMNCRENDERINGCHANGED 0x031F
|
||||
#define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320
|
||||
#define WM_DWMWINDOWMAXIMIZEDCHANGED 0x0321
|
||||
#endif // WM_DWMCOMPOSITIONCHANGED
|
||||
case WM_DWMCOLORIZATIONCOLORCHANGED:
|
||||
case WM_THEMECHANGED: {
|
||||
/* Upcall to WToolkit when user changes configuration.
|
||||
*
|
||||
@@ -1029,12 +1037,7 @@ LRESULT CALLBACK AwtToolkit::WndProc(HWND hWnd, UINT message,
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#ifndef WM_DWMCOMPOSITIONCHANGED
|
||||
#define WM_DWMCOMPOSITIONCHANGED 0x031E
|
||||
#define WM_DWMNCRENDERINGCHANGED 0x031F
|
||||
#define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320
|
||||
#define WM_DWMWINDOWMAXIMIZEDCHANGED 0x0321
|
||||
#endif // WM_DWMCOMPOSITIONCHANGED
|
||||
|
||||
case WM_DWMCOMPOSITIONCHANGED: {
|
||||
DWMResetCompositionEnabled();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user