]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/calctrl.cpp
Warning fix for lack of -> operator.
[wxWidgets.git] / src / generic / calctrl.cpp
index 97481d564c6cd2f7cbf54139a7e56410a7108e80..63e627152071311e0847658ea63abe7eedb17cd7 100644 (file)
@@ -33,7 +33,7 @@
     #include "wx/settings.h"
     #include "wx/brush.h"
     #include "wx/combobox.h"
-    #include "wx/listbox"
+    #include "wx/listbox.h"
     #include "wx/stattext.h"
     #include "wx/textctrl.h"
 #endif //WX_PRECOMP
@@ -312,7 +312,11 @@ bool wxCalendarCtrl::Create(wxWindow *parent,
     // above it
     SetBestSize(size);
     SetPosition(pos);
-        
+
+    // Since we don't paint the whole background make sure that the platform
+    // will use the right one.
+    SetBackgroundColour(GetBackgroundColour());
+    
     SetHolidayAttrs();
 
     return true;