CRuntimeClass *pRuntimeClass = RUNTIME_CLASS(CMyView);
CWnd *pMyView = (CWnd *)pRuntimeClass->CreateObject();


References