Export (0) Print
Expand All

CPaintDC Class

A device-context class derived from CDC.

class CPaintDC : public CDC

Name

Description

CPaintDC::CPaintDC

Constructs a CPaintDC connected to the specified CWnd.

Name

Description

CPaintDC::m_ps

Contains the PAINTSTRUCT used to paint the client area.

Name

Description

CPaintDC::m_hWnd

The HWND to which this CPaintDC object is attached.

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.

Header: afxwin.h

Show:
© 2014 Microsoft