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.
virtual CCmdTarget* OnCreateObject( );
Header file: | Afxdisp.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
COleObjectFactory Overview, COleObjectFactory Member Functions, Application Architecture Classes, COleObjectFactory::COleObjectFactory, CRuntimeClass