From 388feca61be4505d644371a8465634b512411a1b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 18 Dec 2009 14:46:38 +0000 Subject: [PATCH] Restore the use of the correct brush for toolbar background erasing. The call to SetBrush() was mistakenly removed in r62850 but it is needed because wxClientDC only inherits background colour but not the brush used by DrawRectangle() call in wxToolBar::MSWEraseRect(), so the wrong colour was used under systems < Vista. Restore this call now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toolbar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/toolbar.cpp b/src/msw/toolbar.cpp index 3faedbf4ad..e3c26f235c 100644 --- a/src/msw/toolbar.cpp +++ b/src/msw/toolbar.cpp @@ -1835,6 +1835,7 @@ bool wxToolBar::HandlePaint(WXWPARAM wParam, WXLPARAM lParam) // prepare the DC on which we'll be drawing wxClientDC dc(this); + dc.SetBrush(GetBackgroundColour()); dc.SetPen(*wxTRANSPARENT_PEN); RECT rcUpdate; -- 2.45.2