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.
CPaintDC::CPaintDC
CPaintDC                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CPaintDC( CWnd* pWnd );
  throw( CResourceException );
 
  Parameter   Description
 
  <pWnd>      Points to the CWnd object to which the CPaintDC object
              belongs.
 
  Remarks
 
  Constructs a CPaintDC object, prepares the application window for
  painting, and stores the PAINTSTRUCT structure in the m_ps member
  variable.
 
  An exception (of type CResourceException) is thrown if the Windows
  GetDC call fails. A device context may not be available if Windows has
  already allocated all of its available device contexts. Your application
  competes for the five common display contexts available at any given
  time under Windows.
 
 
                                     -♦-