You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
970 B
28 lines
970 B
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); |
|
} |
|
}
|
|
|