gdi32.cs
来自「SharpDevelop2.0.0 c#开发免费工具」· CS 代码 · 共 52 行
CS
52 行
// *****************************************************************************
//
// Copyright 2004, Weifen Luo
// All rights reserved. The software and associated documentation
// supplied hereunder are the proprietary information of Weifen Luo
// and are supplied subject to licence terms.
//
// WinFormsUI Library Version 1.0
// *****************************************************************************
using System;
using System.Runtime.InteropServices;
using WeifenLuo.WinFormsUI.Win32;
namespace WeifenLuo.WinFormsUI
{
internal class Gdi32
{
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern int CombineRgn(IntPtr dest, IntPtr src1, IntPtr src2, int flags);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr CreateRectRgnIndirect(ref Win32.RECT rect);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern bool FillRgn(IntPtr hDC, IntPtr hrgn, IntPtr hBrush);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern int GetClipBox(IntPtr hDC, ref Win32.RECT rectBox);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern int SelectClipRgn(IntPtr hDC, IntPtr hRgn);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr CreateBrushIndirect(ref LOGBRUSH brush);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern bool PatBlt(IntPtr hDC, int x, int y, int width, int height, uint flags);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr DeleteObject(IntPtr hObject);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern bool DeleteDC(IntPtr hDC);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr SelectObject(IntPtr hDC, IntPtr hObject);
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr CreateCompatibleDC(IntPtr hDC);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?