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.
CWnd::ReleaseDC
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int ReleaseDC( CDC* pDC );
 
  Parameter   Description
 
  <pDC>       Identifies the device context to be released.
 
  Remarks
 
  Releases a device context, freeing it for use by other applications. The
  effect of the ReleaseDC member function depends on the device-context
  type. It only frees common and window device contexts. It has no effect
  on class or private device contexts.
 
  The application must call the ReleaseDC member function for each call to
  the GetWindowDC member function and for each call to the GetDC
  member function that retrieves a common device context.
 
  Return Value
 
  Specifies whether the device context is released. It is 1 if the device
  context is released; otherwise 0.
 
  See Also
 
  CWnd::GetDC, CWnd::GetWindowDC, ::ReleaseDC
 
 
                                     -♦-