using System;
using System.Runtime.InteropServices;
namespace Microsoft.Win32
{
///
/// 绘图结构定义
///
public static partial class NativeMethods
{
///
/// 绘图结构
///
[StructLayout(LayoutKind.Sequential)]
public struct PAINTSTRUCT
{
///
/// 是用于绘制的句柄
///
public IntPtr hdc;
///
/// 如果为非零值则擦除背景,否则不擦除背景
///
public bool fErase;
///
/// 通过制定左上角和右下角的坐标确定一个要绘制的矩形范围,该矩形单位相对于客户区左上角
///
public RECT rcPaint;
///
/// Reserved; used internally by the system.
///
public bool fRestore;
///
/// Reserved; used internally by the system.
///
public bool fIncUpdate;
///
/// Reserved; used internally by the system.
///
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
public byte[] rgbReserved;
}
}
}