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:
@@ -343,6 +343,8 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg)
|
|||||||
WXHBRUSH hbr;
|
WXHBRUSH hbr;
|
||||||
if ( colBg.Ok() )
|
if ( colBg.Ok() )
|
||||||
{
|
{
|
||||||
|
::SetBkColor(hdc, wxColourToRGB(colBg));
|
||||||
|
|
||||||
// draw children with the same colour as the parent
|
// draw children with the same colour as the parent
|
||||||
wxBrush *brush = wxTheBrushList->FindOrCreateBrush(colBg, wxSOLID);
|
wxBrush *brush = wxTheBrushList->FindOrCreateBrush(colBg, wxSOLID);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user