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:
parent
48d597ed96
commit
bcc4aa97ff
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user