-{
- wxHtmlWindow *control = new wxHtmlWindow(m_parentAsWindow,
- GetID(),
- GetPosition(), GetSize(),
- GetStyle( wxT("style" ), wxHW_SCROLLBAR_AUTO),
- GetName()
- );
-
- if( HasParam( wxT("borders") ))
+{
+ XRC_MAKE_INSTANCE(control, wxHtmlWindow)
+
+ control->Create(m_parentAsWindow,
+ GetID(),
+ GetPosition(), GetSize(),
+ GetStyle(wxT("style"), wxHW_SCROLLBAR_AUTO),
+ GetName());
+
+ if (HasParam(wxT("borders")))