}
SetSelection(m_cal->GetDate().GetMonth());
- SetSize(wxDefaultPosition.x,
- wxDefaultPosition.y,
- wxDefaultSize.x,
- wxDefaultSize.y,
+ SetSize(wxDefaultCoord,
+ wxDefaultCoord,
+ wxDefaultCoord,
+ wxDefaultCoord,
wxSIZE_AUTO_WIDTH|wxSIZE_AUTO_HEIGHT);
}
// 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;