long style,
const wxString& name)
{
+ // set the style first to avoid assert in our SetWindowStyleFlag()
+ m_windowStyle = style;
+
if ( !wxControl::Create(parent, id, pos, size,
style | wxCLIP_CHILDREN | wxWANTS_CHARS | wxFULL_REPAINT_ON_RESIZE,
wxDefaultValidator, name) )
{
delete m_attrs[n];
}
+
+ if ( !HasFlag(wxCAL_SEQUENTIAL_MONTH_SELECTION) )
+ {
+ delete m_comboMonth;
+ delete m_staticMonth;
+ delete m_spinYear;
+ delete m_staticYear;
+ }
}
void wxCalendarCtrl::SetWindowStyleFlag(long style)