-wxClassInfo *wxClassInfo::FindClass(char *c)
-{
- wxClassInfo *p = sm_first;
- while (p)
- {
- if (p && p->GetClassName() && strcmp(p->GetClassName(), c) == 0)
- return p;
- p = p->m_next;
- }
- return (wxClassInfo *) NULL;
-}
-
-// Climb upwards through inheritance hierarchy.
-// Dual inheritance is catered for.
-bool wxClassInfo::IsKindOf(wxClassInfo *info) const
-{
- if (info == NULL)
- return FALSE;
-
- // For some reason, when making/using a DLL, static data has to be included
- // in both the DLL and the application. This can lead to duplicate
- // wxClassInfo objects, so we have to test the name instead of the pointers.
- // PROBABLY NO LONGER TRUE now I've done DLL creation right.
-/*
-#if WXMAKINGDLL
- if (GetClassName() && info->GetClassName() && (strcmp(GetClassName(), info->GetClassName()) == 0))
- return TRUE;
-#else
-*/
- if (this == info)
- return TRUE;
-
- if (m_baseInfo1)
- if (m_baseInfo1->IsKindOf(info))
- return TRUE;
-
- if (m_baseInfo2)
- return m_baseInfo2->IsKindOf(info);