Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CWnd::ReleaseDC 

Releases a device context, freeing it for use by other applications.


int ReleaseDC(
   CDC* pDC 
);

Parameters

pDC

Identifies the device context to be released.

Nonzero if successful; otherwise 0.

The effect of the ReleaseDC member function depends on the device-context type.

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.

Community Additions

ADD
Show:
© 2015 Microsoft