From 4e04081ff8ff84b8a545ec8b5e19c9aad8f15dc2 Mon Sep 17 00:00:00 2001 From: reduckted Date: Thu, 16 Feb 2023 21:03:56 +1000 Subject: [PATCH] Extended FrameShow enum to include values from __FRAMESHOW2, __FRAMESHOW3 and __FRAMESHOW4. --- .../Windows/WindowFrame.cs | 48 ++++++++++++++++++- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowFrame.cs b/src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowFrame.cs index 9ea41c8..3cc5b18 100644 --- a/src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowFrame.cs +++ b/src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowFrame.cs @@ -1,4 +1,4 @@ -// ================================================================================================ +// ================================================================================================ // WindowFrame.cs // // Created: 2008.07.02, by Istvan Novak (DeepDiver) @@ -440,6 +440,13 @@ public enum FramePosition /// /// Specifies options when the show state of a window frame changes. /// + /// + /// This combines the values from + /// , + /// , + /// and + /// . + /// public enum FrameShow { /// @@ -486,7 +493,32 @@ public enum FrameShow /// Auto-hidden window is about to slide into view. /// Equivalent to . /// - AutoHideSlideBegin = __FRAMESHOW.FRAMESHOW_AutoHideSlideBegin + AutoHideSlideBegin = __FRAMESHOW.FRAMESHOW_AutoHideSlideBegin, + /// + /// A window is about to be hidden. + /// Equivalent to . + /// + BeforeHidden = __FRAMESHOW2.FRAMESHOW_BeforeWinHidden, + /// + /// Auto-hidden window is finished sliding into view. + /// Equivalent to . + /// + AutoHideSlideEnd = __FRAMESHOW2.FRAMESHOW_AutoHideSlideEnd, + /// + /// A window is activated (made visible). + /// Equivalent to . + /// + Activated = __FRAMESHOW3.FRAMESHOW_WinActivated, + /// + /// The window's inner content received keyboard focus. + /// Equivalent to . + /// + ContentGotFocus = __FRAMESHOW4.FRAMESHOW_WinContentGotFocus, + /// + /// The window's inner content lost keyboard focus. + /// Equivalent to . + /// + ContentLostFocus = __FRAMESHOW4.FRAMESHOW_WinContentLostFocus } /// @@ -573,4 +605,16 @@ public WindowFrameDockChangedEventArgs(Rectangle position, bool docked) Docked = docked; } } + + +#if VS14 + /// + /// __FRAMESHOW4 was first defined in Visual Studio 15. + /// + internal enum __FRAMESHOW4 + { + FRAMESHOW_WinContentGotFocus = 13, + FRAMESHOW_WinContentLostFocus + } +#endif } \ No newline at end of file