1 I don't know the meaning of "switching" you metioned. 2 Implement IObjectWithSite /IOleObject(default MFC implemention) in the control and call IObjectWithSite::SetSite/IOleObject::SetClientSite in the container,pass a interface of the container to the control.
2 Implement IObjectWithSite /IOleObject(default MFC implemention) in the control and call IObjectWithSite::SetSite/IOleObject::SetClientSite in the container,pass a interface of the container to the control.