X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d47ebd1e0567a5d4fd60f23eed0439db778fb328..342751763793b5cdad252d731aac0618d0674e5b:/src/msw/textctrl.cpp?ds=sidebyside diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 162933d4c1..347fd91f7c 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -353,10 +353,8 @@ void wxTextCtrl::AdoptAttributesFromHWND() void wxTextCtrl::SetupColours() { - // FIXME why is bg colour not inherited from parent? - wxColour bkgndColour; - if (IsEditable()) + if (IsEditable() || (m_windowStyle & wxTE_MULTILINE)) bkgndColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW); else bkgndColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE);