From bcc4aa97ff6f7efc97ddb3683f244cbb97e7ea80 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 22 Dec 2004 23:29:48 +0000 Subject: [PATCH] call SetBkColor() when using non default background git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/control.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/msw/control.cpp b/src/msw/control.cpp index d5775be8b7..b83a78ae32 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -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);