Struct BufferedPaint
Wraps buffered paint API BeginBufferedPaint etc. Must be disposed locally, like in the example.
public struct BufferedPaint : IDisposable
Examples
case WM_PAINT:
using (BufferedPaint bp = new(w, true)) { ... }
return default;
Namespace: Au.More
Assembly: Au.dll
Constructors
Name | Description |
---|---|
BufferedPaint(wnd, bool, RECT?) | Gets non-buffered DC with API BeginPaint or GetDC. Then gets buffered DC with API BeginBufferedPaint for entire client area or rectangle r. |
Properties
Name | Description |
---|---|
DC | Gets the buffered DC. Returns BufferedPaint.NonBufferedDC if API BeginBufferedPaint failed. |
NonBufferedDC | Gets window DC. |
Rect | Gets client area rectangle or rectangle passed to constructor. |
UpdateRect | Gets bounding rectangle of the update region in client area rectangle. |
Methods
Name | Description |
---|---|
Dispose() | Calls API EndBufferedPaint and EndPaint or ReleaseDC. |