COleObjectFactory::OnCreateObject

This member function is called by the framework to create a new object. Override this function if you want to create the object from something other than the CRuntimeClass passed to the constructor.

Syntax

virtual CCmdTarget* OnCreateObject( );

At a Glance

Header file: Afxdisp.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

See Also

COleObjectFactory Overview, COleObjectFactory Member Functions, Application Architecture Classes, COleObjectFactory::COleObjectFactory, CRuntimeClass