共用方式為


CRuntimeClass::m_pBaseClass

If your application statically links to MFC, this data member contains a pointer to the CRuntimeClass structure of the base class.

Remarks

If your application dynamically links to the MFC library, see m_pfnGetBaseClass.

Example

See the example for IsDerivedFrom.

Requirements

Header: afx.h

See Also

Reference

CRuntimeClass Structure

Hierarchy Chart