Export (0) Print
Expand All

IVsUIShellOpenDocument.OpenCopyOfStandardEditor Method

Used to implement Window.NewWindow functionality.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int OpenCopyOfStandardEditor (
	[InAttribute] IVsWindowFrame pWindowFrame,
	[InAttribute] ref Guid rguidLogicalView,
	out IVsWindowFrame ppNewWindowFrame
)
int OpenCopyOfStandardEditor (
	/** @attribute InAttribute() */ IVsWindowFrame pWindowFrame, 
	/** @attribute InAttribute() */ /** @ref */ Guid rguidLogicalView, 
	/** @attribute OutAttribute() */ /** @ref */ IVsWindowFrame ppNewWindowFrame
)
JScript does not support passing value-type arguments by reference.

Parameters

pWindowFrame

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

rguidLogicalView

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

ppNewWindowFrame

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

Return Value

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

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.

Community Additions

ADD
Show:
© 2014 Microsoft