class CPaintDC : public CDC

The CPaintDC class is a device-context class derived from CDC. It performs a BeginPaint at construction time and EndPaint at destruction time.

A CPaintDC object can only be used when responding to a WM_PAINT message, usually in your OnPaint message-handler member function.

See Also

CDC