- wxCalendarCtrl *calendar = new wxCalendarCtrl(m_parentAsWindow,
- GetID(),
- wxDefaultDateTime,
- /*TODO: take it from resource*/
- GetPosition(), GetSize(),
- GetStyle(),
- GetName());
+ XRC_MAKE_INSTANCE(calendar, wxCalendarCtrl);
+
+ calendar->Create(m_parentAsWindow,
+ GetID(),
+ wxDefaultDateTime,
+ /*TODO: take it from resource*/
+ GetPosition(), GetSize(),
+ GetStyle(),
+ GetName());