Creates a duplicate view object with an identical internal state to the current view.
HRESULT Clone(
IOleInPlaceSite *pIPSiteNew |
// Pointer to view site |
IOleDocumentView **ppViewNew |
// On return, pointer to interface pointer to view object |
); |
Parameters
[out] Indirect pointer to the new view object’s IOleDocumentView interface. The caller is responsible for this pointer any must release it when it is no longer needed.
Return Values
This is useful for creating a new view with a different view port and view site but with the same view context as the view being cloned. Typically this will be used to implement the “Window-New window” functionality.
Remarks
This method is useful for creating a new view with a different view port and view site but with the same view context as the view being cloned. Typically, containers hosting an MDI application will call this method to provide “Window/New window” capability.
See Also
IOleDocumentView, IOleDocumentView::SetInPlaceSite