- m_insideBox = TRUE;
- CreateChildrenPrivately( NULL, GetParamNode(wxT("content")));
- wxString *strings = (wxString *) NULL;
- if( strList.GetCount() > 0 )
- {
- strings = new wxString[strList.GetCount()];
- int count = strList.GetCount();
- for( int i = 0; i < count; i++ )
- strings[i]=strList[i];
- }
-
- wxListBox *control = wxStaticCast(m_instance, wxListBox);
-
- if (!control)
- control = new wxListBox;
+ m_insideBox = true;
+ CreateChildrenPrivately(NULL, GetParamNode(wxT("content")));
+ m_insideBox = false;
+
+ XRC_MAKE_INSTANCE(control, wxListBox)