From 3a7951db2bdc27bc82613cf12c2369b8efeeeb23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Sun, 21 Feb 2016 18:32:10 +0100 Subject: [PATCH] wxMSW: Fix wxToolBar rendering with double-buffering An old check - used for reasons that no longer apply - was preventing correct rendering of wxToolBar background in wxMSW. Fix this by removing the obsolete check. See #9666 for the original reason for the check. --- src/msw/toolbar.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/msw/toolbar.cpp b/src/msw/toolbar.cpp index d6a037a2c1..f03386daee 100644 --- a/src/msw/toolbar.cpp +++ b/src/msw/toolbar.cpp @@ -2042,11 +2042,7 @@ WXLRESULT wxToolBar::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam #ifdef wxHAS_MSW_BACKGROUND_ERASE_HOOK case WM_PAINT: - // refreshing the controls in the toolbar inside a composite window - // results in an endless stream of WM_PAINT messages -- and seems - // to be unnecessary anyhow as everything works just fine without - // any special workarounds in this case - if ( !IsDoubleBuffered() && HandlePaint(wParam, lParam) ) + if ( HandlePaint(wParam, lParam) ) return 0; break; #endif // wxHAS_MSW_BACKGROUND_ERASE_HOOK