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.
This commit is contained in:
Václav Slavík 2016-02-21 18:32:10 +01:00
parent bd9fb66578
commit 3a7951db2b

View File

@ -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