Is there a way to prevent a ToolWindow from being closed?
-
18-09-2019 - |
Question
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
Solution
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:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow