From c0fd60207aee5bf45d4b4a3d87faa239ba83cb16 Mon Sep 17 00:00:00 2001 From: narzoul Date: Sun, 28 Feb 2016 17:45:45 +0100 Subject: [PATCH] Added invalidation of child windows on scroll events Fixed in issue with adjusting the game speed slider in StarCraft's Battle.net interface. It was resulting in a WM_HSCROLL message erasing the parent window background without also redrawing the child windows (labels) on it. --- DDrawCompat/CompatGdiWinProc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDrawCompat/CompatGdiWinProc.cpp b/DDrawCompat/CompatGdiWinProc.cpp index 6392a43..57a941b 100644 --- a/DDrawCompat/CompatGdiWinProc.cpp +++ b/DDrawCompat/CompatGdiWinProc.cpp @@ -249,7 +249,7 @@ namespace void updateScrolledWindow(HWND hwnd) { - RedrawWindow(hwnd, nullptr, nullptr, RDW_ERASE | RDW_FRAME | RDW_INVALIDATE); + RedrawWindow(hwnd, nullptr, nullptr, RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN); } }