cleanup code

This commit is contained in:
2018-05-18 20:00:56 +02:00
parent e68f256d80
commit 6d086205d4
2 changed files with 25 additions and 18 deletions

View File

@@ -1,30 +1,41 @@
using System;
using System.Runtime.InteropServices;
// ReSharper disable InconsistentNaming
namespace Katteker.Gui
{
/// <summary>
/// Native methods.
/// Native methods.
/// </summary>
public static class NativeMethods
{
/// <summary>
/// Release the capture
/// Hit Test Caption
/// </summary>
public const int HTCAPTION = 0x2;
/// <summary>
/// Posted when the user presses the left mouse button while the cursor is within the nonclient area of a window.
/// </summary>
public const int WM_NCLBUTTONDOWN = 0xA1;
/// <summary>
/// Release the capture
/// </summary>
[DllImport("User32.dll")]
public static extern bool ReleaseCapture();
/// <summary>
/// Send message
/// Send message
/// </summary>
[DllImport("User32.dll")]
public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
/// <summary>
/// Set Process API aware
/// Set Process API aware
/// </summary>
[DllImport("user32.dll")]
public static extern bool SetProcessDPIAware();
}
}