X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48c1b6f937010b4802481ceaf6f76d493915a8d8..0fe5e8fea017ecb73f8aaa8ceb745feb269b3f79:/src/msw/statbox.cpp diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index a713c99cb5..fb017bd219 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -79,6 +79,9 @@ bool wxStaticBox::Create(wxWindow *parent, WS_EX_TRANSPARENT) ) return FALSE; + // to be transparent we should have the same colour as the parent as well + SetBackgroundColour(GetParent()->GetBackgroundColour()); + return TRUE; }