Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CPaintDC Class

class CPaintDC : public CDC

Remarks

The CPaintDC class is a device-context class derived from CDC. It performs a CWnd::BeginPaint at construction time and CWnd::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.

For more information on using CPaintDC, see Device Contexts.

Requirements

Header: afxwin.h

See Also

MFC Sample HELLO | MFC Sample MDI

Class Members | Base Class | Hierarchy Chart

Show:
© 2015 Microsoft