m_attrs[n] = NULL;
}
- wxSystemSettings ss;
- m_colHighlightFg = ss.GetSystemColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
- m_colHighlightBg = ss.GetSystemColour(wxSYS_COLOUR_HIGHLIGHT);
+ m_colHighlightFg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
+ m_colHighlightBg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
m_colHolidayFg = *wxRED;
// don't set m_colHolidayBg - by default, same as our bg colour
// forward wxWin functions to subcontrols
// ----------------------------------------------------------------------------
+bool wxCalendarCtrl::Destroy()
+{
+ if( m_staticYear ) m_staticYear->Destroy();
+ if( m_spinYear ) m_spinYear->Destroy();
+ if( m_comboMonth ) m_comboMonth->Destroy();
+ if( m_staticMonth ) m_staticMonth->Destroy();
+
+ m_staticYear = 0; m_spinYear = 0; m_comboMonth = 0; m_staticMonth = 0;
+
+ return wxControl::Destroy();
+}
+
bool wxCalendarCtrl::Show(bool show)
{
if ( !wxControl::Show(show) )