]> git.saurik.com Git - wxWidgets.git/commitdiff
call SetBkColor() when using non default background
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Dec 2004 23:29:48 +0000 (23:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Dec 2004 23:29:48 +0000 (23:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/control.cpp

index d5775be8b75ace8967a8bd04c8dd7ada73c19c24..b83a78ae327976cb1025e82ee23679c6fa8fe8f2 100644 (file)
@@ -343,6 +343,8 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg)
     WXHBRUSH hbr;
     if ( colBg.Ok() )
     {
+        ::SetBkColor(hdc, wxColourToRGB(colBg));
+
         // draw children with the same colour as the parent
         wxBrush *brush = wxTheBrushList->FindOrCreateBrush(colBg, wxSOLID);