-{
- wxStaticLine *line = new wxStaticLine(m_parentAsWindow,
- GetID(),
- GetPosition(), GetSize(),
- GetStyle(wxT("style"), wxLI_HORIZONTAL),
- GetName()
- );
+{
+ XRC_MAKE_INSTANCE(line, wxStaticLine)
+
+ line->Create(m_parentAsWindow,
+ GetID(),
+ GetPosition(), GetSize(),
+ GetStyle(wxT("style"), wxLI_HORIZONTAL),
+ GetName());
+