bool ArxClassHelper::GetTopParentClass( const CString& type, CString& parentType ) { AcStringArray types; GetClassHierarchy( type, types, false ); if( types.isEmpty() ) return false; // type本身就是抽象类 parentType = types.first().kACharPtr(); return true; }