]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/choice.cpp
Compile fix. Where exactly is "wxString GetHomeDir()"?
[wxWidgets.git] / src / msw / choice.cpp
index 90714d1e5ad0a88d8dc52708e1aa06e5276b6cd8..c92de5c4cc5edb61c907a2c305e6a05d996e7cb7 100644 (file)
@@ -32,6 +32,7 @@
     #include "wx/choice.h"
     #include "wx/utils.h"
     #include "wx/log.h"
+    #include "wx/settings.h"
 #endif
 
 #include "wx/msw/private.h"
@@ -75,6 +76,10 @@ bool wxChoice::Create(wxWindow *parent,
     if ( !MSWCreateControl(wxT("COMBOBOX"), msStyle) )
         return FALSE;
 
+    // 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));
+
     for ( int i = 0; i < n; i++ )
     {
         Append(choices[i]);