views:

100

answers:

1

Is there a way to hide the "X" closing icon of a ToolWindow or is there a way to use IVsWindowFrameNotify3's OnShow method to discard (ignore) the event?

It seems that the OnClose method is called only when VS exit. When the ToolWindow is called, the OnShow method is called with the __FRAMESHOW.FRAMESHOW_WinHidden state.

thanks

+1  A: 

While I agree with the advice of the commentors, from what I've understood, you need to show the window when it is hidden, not closed.

Check out this article:

http://blogs.msdn.com/dr._ex/archive/2004/11/07/253601.aspx

uosɐſ