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
Returns TRUE on success, FALSE on failure.
You can override this member function to return an instance of your own control site class.
Reference
CHtmlView Class
Hierarchy Chart
Other Resources
CHtmlView Members