-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathEnumerations.cs
More file actions
91 lines (75 loc) · 2.69 KB
/
Enumerations.cs
File metadata and controls
91 lines (75 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
namespace Menees.Windows
{
#region Using Directives
using System;
using System.Collections.Generic;
using System.Text;
#endregion
#region public ShowWindowCommand
/// <summary>
/// The commands supported by <see cref="HandleUtility.PostShowWindowCommand"/>.
/// </summary>
/// <remarks>
/// These commands are defined by the ShowWindow API:
/// https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow#parameters
/// </remarks>
public enum ShowWindowCommand
{
/// <summary>
/// Hides the window and activates another window.
/// </summary>
Hide = 0,
/// <summary>
/// Activates and displays a window. If the window is minimized or maximized, the system restores it to its original
/// size and position. An application should specify this flag when displaying the window for the first time.
/// </summary>
ShowNormal = 1,
/// <summary>
/// Activates the window and displays it as a minimized window.
/// </summary>
ShowMinimized = 2,
/// <summary>
/// Activates the window and displays it as a maximized window.
/// </summary>
ShowMaximized = 3,
/// <summary>
/// Displays a window in its most recent size and position. This value is similar to <see cref="ShowNormal"/>,
/// except that the window is not activated.
/// </summary>
ShowNoActivate = 4,
/// <summary>
/// Activates the window and displays it in its current size and position.
/// </summary>
Show = 5,
/// <summary>
/// Minimizes the specified window and activates the next top-level window in the Z order.
/// </summary>
Minimize = 6,
/// <summary>
/// Displays the window as a minimized window. This value is similar to <see cref="ShowMinimized"/>,
/// except the window is not activated.
/// </summary>
ShowMinNoActive = 7,
/// <summary>
/// Displays the window in its current size and position. This value is similar to <see cref="Show"/>,
/// except that the window is not activated.
/// </summary>
ShowNA = 8,
/// <summary>
/// Activates and displays the window. If the window is minimized or maximized, the system restores it to its
/// original size and position. An application should specify this flag when restoring a minimized window.
/// </summary>
Restore = 9,
/// <summary>
/// Sets the show state based on the SW_ value specified in the STARTUPINFO structure passed to the
/// CreateProcess function by the program that started the application.
/// </summary>
ShowDefault = 10,
/// <summary>
/// Minimizes a window, even if the thread that owns the window is not responding.
/// This flag should only be used when minimizing windows from a different thread.
/// </summary>
ForceMinimize = 11,
}
#endregion
}