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.
(cherry picked from commit 3a7951db2b
)
This commit is contained in:
@@ -2072,11 +2072,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
|
||||
|
Reference in New Issue
Block a user