]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
Initial revision
[wxWidgets.git] / src / msw / textctrl.cpp
index 162933d4c1471f6e085f39a3c398e60dd76ecd98..347fd91f7cf77de4ed719210ee1d8adb42153b07 100644 (file)
@@ -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);