IVsOutputWindow::CreatePane Method (Guid, String^, Int32, Int32)
Creates an output window pane.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int CreatePane( [InAttribute] Guid% rguidPane, String^ pszPaneName, int fInitVisible, int fClearWithSolution )
Parameters
- rguidPane
-
Type:
System::Guid
[in] GUID of the Output window pane.
- pszPaneName
-
Type:
System::String^
[in] Name of the output window pane.
- fInitVisible
-
Type:
System::Int32
[in] If true, the output window pane is initially visible
- fClearWithSolution
-
Type:
System::Int32
[in] If true, the output window pane is cleared when the solution closes.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsOutputWindow::CreatePane( [in] REFGUID rguidPane, [in] LPCOLESTR pszPaneName, [in] BOOL fInitVisible, [in] BOOL fClearWithSolution );
The Build and the General output window panes are supplied by the environment. The Build output window pane is created by the SVsSolutionBuildManager service and the pointer to the Build window pane is passed to the projects as part of IVsBuildableProjectCfg operations. The General output window pane is a shared pane, which and is created and managed by the environment. It can be retrieved by calling QueryService(SID_SVsGeneralOutputWindowPane, and IID_IVsOutputWindowPane). To create your own output window, call CreatePane passing in the name and GUID you want to use for your custom output window pane.