X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d47ebd1e0567a5d4fd60f23eed0439db778fb328..b5a7b0005781f24ab97ed3322530423b6d89fb67:/src/msw/textctrl.cpp 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);