www.pudn.com > holder.zip > MyManager.cpp, change:1998-09-29,size:508b


 
 
#include "stdafx.h" 
 
#include "MyManager.h" 
#include "MySite.h" 
#include "HolderView.h" 
 
//SAMPLE: if we're creating the site for CHolderView, we want to 
// return our own pointer instead of the regular one. 
 
COleControlSite* CMyManager::CreateSite(COleControlContainer* pCtrlCont) 
{ 
	COleControlSite* pReturn; 
 
	if (pCtrlCont->m_pWnd->IsKindOf(RUNTIME_CLASS(CHolderView))) 
		pReturn = new CMySite(pCtrlCont); 
	else 
		pReturn = COccManager::CreateSite(pCtrlCont); 
 
	return pReturn; 
}