IVsUIShellOpenDocument::OpenCopyOfStandardEditor Method (IVsWindowFrame^, Guid, IVsWindowFrame^)

 

Used to implement Window.NewWindow functionality.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int OpenCopyOfStandardEditor(
	IVsWindowFrame^ pWindowFrame,
	[InAttribute] Guid% rguidLogicalView,
	[OutAttribute] IVsWindowFrame^% ppNewWindowFrame
)

Parameters

pWindowFrame
Type: Microsoft.VisualStudio.Shell.Interop::IVsWindowFrame^

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

rguidLogicalView
Type: System::Guid

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

ppNewWindowFrame
Type: Microsoft.VisualStudio.Shell.Interop::IVsWindowFrame^

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: