RUNTIME_CLASS( className )
className
The name of the class that you want run-time class information.
Use to extract the run-time class information for a specified class derived from CObject. The macro returns an object of class CRuntimeClass. A CRuntimeClass structure has member variables containing the class name, object size, schema number, base class, and other information, which you can access directly. CRuntimeClass is defined in the file AFX.H. You can also use the IsKindOf member function of class CObject to query whether an object belongs to a specified class. For more information and examples, see the Class Libraries User's Guide, Chapter 8, “The CObject Class.”
CObject::IsKindOf, CRuntimeClass, CObject
CRuntimeClass* pCls;
pCls = RUNTIME_CLASS( CObject );
...