Partager via


COleObjectFactory::OnCreateObject

Called by the framework to create a new object.

virtual CCmdTarget* OnCreateObject( );

Return Value

A pointer to the created object. It can throw a memory exception if it fails.

Remarks

Override this function to create the object from something other than the CRuntimeClass passed to the constructor.

Requirements

Header: afxdisp.h

See Also

Reference

COleObjectFactory Class

Hierarchy Chart

COleObjectFactory::COleObjectFactory

CRuntimeClass Structure

Other Resources

COleObjectFactory Members