- wxTreeCtrl *tree = new wxTreeCtrl(m_parentAsWindow,
- GetID(),
- GetPosition(), GetSize(),
- GetStyle(),
- wxDefaultValidator,
- GetName());
-
+ XRC_MAKE_INSTANCE(tree, wxTreeCtrl)
+
+ tree->Create(m_parentAsWindow,
+ GetID(),
+ GetPosition(), GetSize(),
+ GetStyle(),
+ wxDefaultValidator,
+ GetName());
+