The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



Called by the framework to create a control site, hosted by the container pointed to by pCtrlCont.

      virtual COleControlSite* CreateSite(
   COleControlContainer* pCtrlCont 


A pointer to the control container hosting the new control site.

A pointer to the newly created control site.

Override this function to create a custom control site, using your COleControlSite-derived class.

Each control container can host multiple sites. Create additional sites with multiple calls to CreateSite.


Header: afxocc.h