- else {
- wxNotebook *nb = new wxNotebook(m_parentAsWindow,
- GetID(),
- GetPosition(), GetSize(),
- GetStyle( wxT("style" )),
- GetName());
-
+ else
+ {
+ XRC_MAKE_INSTANCE(nb, wxNotebook)
+
+ nb->Create(m_parentAsWindow,
+ GetID(),
+ GetPosition(), GetSize(),
+ GetStyle(wxT("style")),
+ GetName());
+