How do I force the OutputWindow to show if another tab is active (e.g.
Tasks), or the OutputWindow has been closed? Using VSIP2003 managed helper
classes.
The Activate method on OutputWindowPane only activates my pane, and only if
the OutputWindow is active. OutputWindow only has methods to create panes. Is
there a way to get the IVsWindowFrame of the OutputWindow and use its Show
method. How does Build force the OutputWindow to appear even if it has been
closed?
Thanks.
Greg
Parag Chandra - 17 Feb 2005 21:50 GMT
Have you tried something like:
Windows windows = applicationObject.Windows;
Window window = (Window)windows.Item(EnvDTE.Constants.vsWindowKindOutput);
window.Activate();
yourWindowPane.Activate();
?
> How do I force the OutputWindow to show if another tab is active (e.g.
> Tasks), or the OutputWindow has been closed? Using VSIP2003 managed helper
[quoted text clipped - 11 lines]
> Thanks.
> Greg
"Ed Dore [MSFT]" - 17 Feb 2005 22:32 GMT
Hi Greg,
I believe the output window is displayed by the project system when it
first initiates the build (like from IVsBuildableProjectCfg::StartBuild for
example). To retrieve the OutputWindow's IVsWindowFrame, you should be
able to use IVsUIShell::FindToolWindow.
Sincerely,
Ed Dore [MSFT]
This post is 'AS IS' with no warranties and confers no rights.