COleObjectFactory::OnCreateObject

This method is called by the framework to create a new object. Override this method to create the object from something other than the CRuntimeClass passed to the constructor.

At a Glance

Header file: Afxdisp.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation Visual C++ documentation

Syntax

virtual CCmdTarget* OnCreateObject( );

See Also

COleObjectFactory::COleObjectFactory, CRuntimeClass