Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

PAINTSTRUCT (Structures)
 
.
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)> _

<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

<MarshalAs(UnmanagedType.ByValArray, SizeConst := 32)> _

      Public rgbReserved As Byte()

End Structure

User-Defined Field Types:

RECT

Notes:

None.

Documentation
PAINTSTRUCT on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions