]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
Compile fix. Where exactly is "wxString GetHomeDir()"?
[wxWidgets.git] / src / msw / combobox.cpp
index 0593b9342e9d804ce2ce2af40e1f41fc0b5a533d..93e9b8a731e61f2d46ee87a7d4d4dcb1ddccb23a 100644 (file)
@@ -74,7 +74,12 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
   SetName(name);
   SetValidator(validator);
   if (parent) parent->AddChild(this);
-  SetBackgroundColour(parent->GetBackgroundColour()) ;
+//  SetBackgroundColour(parent->GetBackgroundColour()) ;
+
+  // A choice/combobox normally has a white background (or other, depending
+  // on global settings) rather than inheriting the parent's background colour.
+  SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW));
+
   SetForegroundColour(parent->GetForegroundColour()) ;
 
   m_windowStyle = style;