HDC BeginPaint(
[in] HWND hWnd, // handle to the window to be repainted
[out] LPPAINTSTRUCT lpPaint // out-param; the paint struct we should pass back
// to EndPaint, to communicate more information
);
typedef struct tagPAINTSTRUCT {
HDC hdc;
BOOL fErase; // if the background should be cleared,
// (I think automatic when wndclass::hbrBackground was set)
RECT rcPaint; // the area that should be painted to
BOOL fRestore;
BOOL fIncUpdate;
BYTE rgbReserved[32];
} PAINTSTRUCT, *PPAINTSTRUCT, *NPPAINTSTRUCT, *LPPAINTSTRUCT;