The PAINTSTRUCT structure contains information for an application. This information can be used to paint the client area of a window owned by that application.
typedef struct tagPAINTSTRUCT {
HDC hdc;
BOOL fErase;
RECT rcPaint;
BOOL fRestore;
BOOL fIncUpdate;
BYTE rgbReserved[16];
} PAINTSTRUCT;
The PAINTSTRUCT structure has the following fields:
Field | Description | |
hdc | Identifies the display context to be used for painting. | |
fErase | Specifies whether the background has been redrawn. It has been redrawn if nonzero. | |
rcPaint | Specifies the upper-left and lower-right corners of the rectangle in which the painting is requested. | |
fRestore | Reserved field. It is used internally by Windows. | |
fIncUpdate | Reserved field. It is used internally by Windows. | |
rgbReserved[16] | Reserved field. A reserved block of memory used internally by Windows. |