Share via


PAINTSTRUCT

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure contains information that an application uses to paint the client area of a window owned by that application.

Syntax

typedef struct tagPAINTSTRUCT { 
  HDC hdc; 
  BOOL fErase; 
  RECT rcPaint; 
  BOOL fRestore; 
  BOOL fIncUpdate; 
  BYTE rgbReserved[32]; 
} PAINTSTRUCT;

Members

  • hdc
    Handle to the display DC to be used for painting.
  • fErase
    Boolean that specifies whether the background must be erased.

    This value is nonzero if the application should erase the background.

    The application is responsible for erasing the background if a window class is created without a background brush.

    For more information about backgrounds, see the description of the hbrBackground member of the WNDCLASS structure.

  • rcPaint
    Specifies a RECT structure that specifies the upper left and lower right corners of the rectangle in which the painting is requested.
  • fRestore
    Reserved; used internally by the system.
  • fIncUpdate
    Reserved; used internally by the system.
  • rgbReserved
    Reserved; used internally by the system.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

BeginPaint
RECT
WNDCLASS