+ return info->CreateObject();
+ }
+ else
+ {
+ wxClassInfo *info = wxClassInfo::sm_first;
+ while (info)
+ {
+ if (info->m_className && strcmp(info->m_className, name) == 0)
+ return info->CreateObject();
+ info = info->m_next;
+ }
+ return (wxObject*) NULL;
+ }
+ return (wxObject*) NULL;