using KGIS.Plugin.LayerProperty.Model; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace KGIS.Plugin.LayerProperty.Utils { public class User32 { [DllImport("User32.dll")] public static extern int GetDesktopWindow(); [DllImport("User32.dll")] public static extern int GetWindowDC(int hWnd); [DllImport("User32.dll")] public static extern int ReleaseDC(int hWnd, int hDC); [DllImport("User32.dll")] public static extern int FillRect(int hDC, ref RECT lpRect, int hBrush); [DllImport("User32.dll")] public static extern int GetWindowRect(int hWnd, ref RECT lpRect); [DllImport("User32.dll")] public static extern int GetClientRect(int hWnd, ref RECT lpRect); [DllImport("User32.dll")] public static extern int GetDC(int hWnd); } }