Compartir a través de


IVsUIShellOpenDocument.OpenCopyOfStandardEditor Method

Definition

Used to implement Window.NewWindow functionality.

public:
 int OpenCopyOfStandardEditor(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ pWindowFrame, Guid % rguidLogicalView, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ % ppNewWindowFrame);
public int OpenCopyOfStandardEditor (Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame pWindowFrame, ref Guid rguidLogicalView, out Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame ppNewWindowFrame);
abstract member OpenCopyOfStandardEditor : Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame * Guid * IVsWindowFrame -> int
Public Function OpenCopyOfStandardEditor (pWindowFrame As IVsWindowFrame, ByRef rguidLogicalView As Guid, ByRef ppNewWindowFrame As IVsWindowFrame) As Integer

Parameters

pWindowFrame
IVsWindowFrame

[in] Pointer to the original window frame to clone.

rguidLogicalView
Guid

[in] GUID identifying the logical view. For a list of logical view GUIDS, see Logical View and Physical View.

ppNewWindowFrame
IVsWindowFrame

[out] Pointer to the new, cloned window frame.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIShellOpenDocument::OpenCopyOfStandardEditor(  
   [in] IVsWindowFrame *pWindowFrame,  
   [in] REFGUID rguidLogicalView,  
   [out, retval] IVsWindowFrame **ppNewWindowFrame  
);  

Editors should handle cmdidNewWindow command by calling this method.

Applies to