Creates a duplicate view object with an internal state identical to that of the current view.
HRESULT Clone(
IOleInPlaceSite *pIPSiteNew // Pointer to view site of new view
// object
IOleDocumentView **ppViewNew //Address of output variable that
// receives the IOleDocumentView
// interface pointer
);
This method supports the standard return value E_FAIL, as well as the following:
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.
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in docobj.h.
IOleDocumentView, IOleDocumentView::SetInPlaceSite