IVsUIShellOpenDocument.OpenCopyOfStandardEditor Method

Definition

Used to implement Window.NewWindow functionality.

C++
public:
 int OpenCopyOfStandardEditor(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ pWindowFrame, Guid % rguidLogicalView, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ % ppNewWindowFrame);

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:

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

Editors should handle cmdidNewWindow command by calling this method.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022