This repository has been archived by the owner on Aug 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
414 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "Source/Myst"] | ||
path = Source/Myst | ||
url = https://github.com/mika-f/Myst.git | ||
[submodule "Source/VirtualDesktop"] | ||
path = Source/VirtualDesktop | ||
url = https://github.com/Grabacr07/VirtualDesktop.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Myst
updated
from 0366a5 to 65508f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// ReSharper disable FieldCanBeMadeReadOnly.Global | ||
// ReSharper disable InconsistentNaming | ||
// ReSharper disable MemberCanBePrivate.Global | ||
|
||
namespace Robock.Shared.Win32 | ||
{ | ||
public enum ShowWindowCommands | ||
{ | ||
/// <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> | ||
Normal = 1, | ||
|
||
/// <summary> | ||
/// Activates the window and displays it as a minimized window. | ||
/// </summary> | ||
ShowMinimized = 2, | ||
|
||
/// <summary> | ||
/// Maximizes the specified window. | ||
/// </summary> | ||
Maximize = 3, // is this the right value? | ||
|
||
/// <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="Normal" />, except | ||
/// 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 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> | ||
/// <b>Windows 2000/XP:</b> 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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using System.Windows; | ||
|
||
// ReSharper disable FieldCanBeMadeReadOnly.Global | ||
// ReSharper disable InconsistentNaming | ||
// ReSharper disable MemberCanBePrivate.Global | ||
|
||
namespace Robock.Shared.Win32 | ||
{ | ||
[Serializable] | ||
[StructLayout(LayoutKind.Sequential)] | ||
public struct WINDOWPLACEMENT | ||
{ | ||
/// <summary> | ||
/// The length of the structure, in bytes. Before calling the GetWindowPlacement or SetWindowPlacement functions, set | ||
/// this member to sizeof(WINDOWPLACEMENT). | ||
/// <para> | ||
/// GetWindowPlacement and SetWindowPlacement fail if this member is not set correctly. | ||
/// </para> | ||
/// </summary> | ||
public int Length; | ||
|
||
/// <summary> | ||
/// Specifies flags that control the position of the minimized window and the method by which the window is restored. | ||
/// </summary> | ||
public int Flags; | ||
|
||
/// <summary> | ||
/// The current show state of the window. | ||
/// </summary> | ||
public ShowWindowCommands ShowCmd; | ||
|
||
/// <summary> | ||
/// The coordinates of the window's upper-left corner when the window is minimized. | ||
/// </summary> | ||
public Point MinPosition; | ||
|
||
/// <summary> | ||
/// The coordinates of the window's upper-left corner when the window is maximized. | ||
/// </summary> | ||
public Point MaxPosition; | ||
|
||
/// <summary> | ||
/// The window's coordinates when the window is in the restored position. | ||
/// </summary> | ||
public RECT NormalPosition; | ||
|
||
/// <summary> | ||
/// Gets the default (empty) value. | ||
/// </summary> | ||
public static WINDOWPLACEMENT Default | ||
{ | ||
get | ||
{ | ||
var result = new WINDOWPLACEMENT(); | ||
result.Length = Marshal.SizeOf(result); | ||
return result; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.