]> git.saurik.com Git - wxWidgets.git/commitdiff
Restore the use of the correct brush for toolbar background erasing.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Dec 2009 14:46:38 +0000 (14:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Dec 2009 14:46:38 +0000 (14:46 +0000)
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

index 3faedbf4ad792e6c00589aa1d4f810b17e6d737f..e3c26f235c0f6ed623450f918b4adca0721bf36c 100644 (file)
@@ -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;