PAINTSTRUCT (Structures)
Last changed: -212.72.208.162

.
Summary
Contains information that can be used to paint the client area of a window.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
struct PAINTSTRUCT {
   public IntPtr hdc;
   public bool fErase;
   public RECT rcPaint;
   public bool fRestore;
   public bool fIncUpdate;
   [MarshalAs(UnmanagedType.ByValArray, SizeConst=32)] public byte [] rgbReserved;
}

VB Definition:

<StructLayout(LayoutKind.Sequential, Pack := 4)> _
  Public Structure PAINTSTRUCT
    Public hdc As IntPtr
    Public fErase As Integer
    Public rcPaint As RECT
    Public fRestore As Integer
    Public fIncUpdate As Integer
    <MarshalAs(UnmanagedType.ByValArray, SizeConst := 32)> _
    Public rgbReserved As Byte()
End Structure

User-Defined Field Types:

RECT

Notes:

None.

Documentation
PAINTSTRUCT on MSDN