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