update win32
This commit is contained in:
@@ -57,8 +57,21 @@ namespace SpineViewer.Natives
|
|||||||
public const uint SMTO_NOTIMEOUTIFNOTHUNG = 0x0008;
|
public const uint SMTO_NOTIMEOUTIFNOTHUNG = 0x0008;
|
||||||
|
|
||||||
public const uint GA_PARENT = 1;
|
public const uint GA_PARENT = 1;
|
||||||
|
|
||||||
public const uint GW_OWNER = 4;
|
public const uint GW_OWNER = 4;
|
||||||
|
|
||||||
|
public const int SW_HIDE = 0;
|
||||||
|
public const int SW_SHOWNORMAL = 1;
|
||||||
|
public const int SW_SHOWMINIMIZED = 2;
|
||||||
|
public const int SW_SHOWMAXIMIZED = 3;
|
||||||
|
public const int SW_SHOWNOACTIVATE = 4;
|
||||||
|
public const int SW_SHOW = 5;
|
||||||
|
public const int SW_MINIMIZE = 6;
|
||||||
|
public const int SW_SHOWMINNOACTIVE = 7;
|
||||||
|
public const int SW_SHOWNA = 8;
|
||||||
|
public const int SW_RESTORE = 9;
|
||||||
|
public const int SW_SHOWDEFAULT = 10;
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct POINT
|
public struct POINT
|
||||||
{
|
{
|
||||||
@@ -89,6 +102,15 @@ namespace SpineViewer.Natives
|
|||||||
public uint dwTime;
|
public uint dwTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
public struct RECT
|
||||||
|
{
|
||||||
|
public int Left;
|
||||||
|
public int Top;
|
||||||
|
public int Right;
|
||||||
|
public int Bottom;
|
||||||
|
}
|
||||||
|
|
||||||
[DllImport("user32.dll", SetLastError = true)]
|
[DllImport("user32.dll", SetLastError = true)]
|
||||||
public static extern nint GetDC(nint hWnd);
|
public static extern nint GetDC(nint hWnd);
|
||||||
|
|
||||||
@@ -140,6 +162,9 @@ namespace SpineViewer.Natives
|
|||||||
[DllImport("user32.dll", SetLastError = true)]
|
[DllImport("user32.dll", SetLastError = true)]
|
||||||
public static extern nint GetWindow(nint hWnd, uint uCmd);
|
public static extern nint GetWindow(nint hWnd, uint uCmd);
|
||||||
|
|
||||||
|
[DllImport("user32.dll", SetLastError = true)]
|
||||||
|
public static extern bool ShowWindow(nint hWnd, int nCmdShow);
|
||||||
|
|
||||||
[DllImport("gdi32.dll", SetLastError = true)]
|
[DllImport("gdi32.dll", SetLastError = true)]
|
||||||
public static extern nint CreateCompatibleDC(nint hdc);
|
public static extern nint CreateCompatibleDC(nint hdc);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user