X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48c1b6f937010b4802481ceaf6f76d493915a8d8..e7300ec6d9ebbd1cfa2fcf12c0ce6e5aee85a152:/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; }