Skip to content

Commit

Permalink
Extended FrameShow enum to include values from __FRAMESHOW2, __FRAMES…
Browse files Browse the repository at this point in the history
…HOW3 and __FRAMESHOW4.
  • Loading branch information
reduckted committed Feb 16, 2023
1 parent b8b3d10 commit 4e04081
Showing 1 changed file with 46 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ================================================================================================
// ================================================================================================
// WindowFrame.cs
//
// Created: 2008.07.02, by Istvan Novak (DeepDiver)
Expand Down Expand Up @@ -440,6 +440,13 @@ public enum FramePosition
/// <summary>
/// Specifies options when the show state of a window frame changes.
/// </summary>
/// <remarks>
/// This combines the values from
/// <see cref="__FRAMESHOW"/>,
/// <see cref="__FRAMESHOW2"/>,
/// <see cref="__FRAMESHOW3"/> and
/// <see cref="__FRAMESHOW4"/>.
/// </remarks>
public enum FrameShow
{
/// <summary>
Expand Down Expand Up @@ -486,7 +493,32 @@ public enum FrameShow
/// <para>Auto-hidden window is about to slide into view.</para>
/// <para>Equivalent to <see cref="__FRAMESHOW.FRAMESHOW_AutoHideSlideBegin"/>.</para>
/// </summary>
AutoHideSlideBegin = __FRAMESHOW.FRAMESHOW_AutoHideSlideBegin
AutoHideSlideBegin = __FRAMESHOW.FRAMESHOW_AutoHideSlideBegin,
/// <summary>
/// <para>A window is about to be hidden.</para>
/// <para>Equivalent to <see cref="__FRAMESHOW2.FRAMESHOW_BeforeWinHidden"/>.</para>
/// </summary>
BeforeHidden = __FRAMESHOW2.FRAMESHOW_BeforeWinHidden,
/// <summary>
/// <para>Auto-hidden window is finished sliding into view.</para>
/// <para>Equivalent to <see cref="__FRAMESHOW2.FRAMESHOW_AutoHideSlideEnd"/>.</para>
/// </summary>
AutoHideSlideEnd = __FRAMESHOW2.FRAMESHOW_AutoHideSlideEnd,
/// <summary>
/// <para>A window is activated (made visible).</para>
/// <para>Equivalent to <see cref="__FRAMESHOW3.FRAMESHOW_WinActivated"/>.</para>
/// </summary>
Activated = __FRAMESHOW3.FRAMESHOW_WinActivated,
/// <summary>
/// <para>The window's inner content received keyboard focus.</para>
/// <para>Equivalent to <see cref="__FRAMESHOW4.FRAMESHOW_WinContentGotFocus"/>.</para>
/// </summary>
ContentGotFocus = __FRAMESHOW4.FRAMESHOW_WinContentGotFocus,
/// <summary>
/// <para>The window's inner content lost keyboard focus.</para>
/// <para>Equivalent to <see cref="__FRAMESHOW4.FRAMESHOW_WinContentLostFocus"/>.</para>
/// </summary>
ContentLostFocus = __FRAMESHOW4.FRAMESHOW_WinContentLostFocus
}

/// <summary>
Expand Down Expand Up @@ -573,4 +605,16 @@ public WindowFrameDockChangedEventArgs(Rectangle position, bool docked)
Docked = docked;
}
}


#if VS14
/// <summary>
/// __FRAMESHOW4 was first defined in Visual Studio 15.
/// </summary>
internal enum __FRAMESHOW4
{
FRAMESHOW_WinContentGotFocus = 13,
FRAMESHOW_WinContentLostFocus
}
#endif
}

0 comments on commit 4e04081

Please sign in to comment.