Share via


CHtmlView::CreateControlSite

Overridable used to create a control site instance to host a control on the form.

virtual BOOL CreateControlSite( 
   COleControlContainer* pContainer, 
   COleControlSite** ppSite, 
   UINT nID, 
   REFCLSID clsid 
);

Parameters

  • pContainer
    A pointer to a COleControlContainer object containing the control.

  • ppSite
    A pointer to a pointer to a COleControlSite object, providing the site for the control.

  • nID
    The identifier of the control to be hosted.

  • clsid
    The CLSID of the control to be hosted

Return Value

Returns TRUE on success, FALSE on failure.

Remarks

You can override this member function to return an instance of your own control site class.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart