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.
Header file: | Afxdisp.h |
Platforms: | H/PC 2.0, H/PC Pro |
Windows CE versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
virtual CCmdTarget* OnCreateObject( );
COleObjectFactory::COleObjectFactory, CRuntimeClass