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:
parent
bd9fb66578
commit
3a7951db2b
@ -2042,11 +2042,7 @@ WXLRESULT wxToolBar::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam
|
|||||||
|
|
||||||
#ifdef wxHAS_MSW_BACKGROUND_ERASE_HOOK
|
#ifdef wxHAS_MSW_BACKGROUND_ERASE_HOOK
|
||||||
case WM_PAINT:
|
case WM_PAINT:
|
||||||
// refreshing the controls in the toolbar inside a composite window
|
if ( HandlePaint(wParam, lParam) )
|
||||||
// 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) )
|
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
#endif // wxHAS_MSW_BACKGROUND_ERASE_HOOK
|
#endif // wxHAS_MSW_BACKGROUND_ERASE_HOOK
|
||||||
|
Loading…
Reference in New Issue
Block a user