call SetBkColor() when using non default background

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-12-22 23:29:48 +00:00
parent 48d597ed96
commit bcc4aa97ff

View 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);