CPaintDC

Win32++

CPaintDC Class

Description

This class is responsible for creating a device context for drawing to a window during the handling of the WM_PAINT message. This device context is used by CWnd::OnDraw.

CPaintDC Members

Initialization and Assignment

Initialization and Assignment
CPaintDC
CPaintDC(const CWnd* pWnd);
Constructs a CPaintDC object.
Base class Members

For base class members, refer to the members of CDC.

Remarks

This class automatically calls CWnd::BeginPaint when it is constructed, and automatically calls CWnd::EndPaint when it is destroyed.

Refer to the Graphics Device Interface section of Using Win32++ for additional information on using this class.

Summary Information

Header file gdi.h
Win32/64 support Yes
WinCE support Yes