-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
97 additions
and
73 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
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,31 @@ | ||
using Standard; | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using WPFDevelopers.Helpers; | ||
|
||
namespace WPFDevelopers.Core.Helpers | ||
{ | ||
public static class MonitorHelper | ||
{ | ||
internal class WindowsMessageCodes | ||
{ | ||
public const int SC_RESTORE = 0xF120; | ||
public const int SC_MINIMIZE = 0xF020; | ||
public const int WM_SYSCOMMAND = 0x0112; | ||
public const int WM_DEADCHAR = 0x0024; | ||
} | ||
|
||
[DllImport(Win32.User32)] | ||
internal static extern bool GetMonitorInfo(IntPtr hMonitor, MONITORINFO lpmi); | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[DllImport(Win32.User32)] | ||
internal static extern IntPtr MonitorFromWindow(IntPtr handle, int flags); | ||
|
||
[DllImport(Win32.User32)] | ||
internal static extern int SendMessage(IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam); | ||
|
||
} | ||
} |
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