◄CDC► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── Description 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. See Also ◄CDC► Public Members Data Members ◄m_ps► Contains the ◄PAINTSTRUCT► used to paint the client area. Construction/Destruction ◄CPaintDC► Constructs a CPaintDC connected to the specified ◄CWnd►. ◄~CPaintDC► Destroys a CPaintDC. Protected Members ◄m_hWnd► The HWND to which this CPaintDC object is attached. -♦-