Compartir a través de


COccManager::CreateSite

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

virtual COleControlSite* CreateSite(
   COleControlContainer* pCtrlCont 
);

Parameters

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

Return Value

A pointer to the newly created control site.

Remarks

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.

Requirements

Header: afxocc.h

See Also

Concepts

COccManager Class

COccManager Members

Hierarchy Chart