Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
class CPaintDC
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.
 
 
                                     -♦-