This function releases a device context (DC), freeing it for use by other applications. The effect of ReleaseDC depends on the type of device context.
int ReleaseDC( HWND hWnd, HDC hDC );
Handle to the window whose device context is to be released.
Handle to the device context to be released.
The return value specifies whether the device context is released. 1 indicates that the device context is released. Zero indicates that the device context is not released.
An application cannot use the ReleaseDC function to release a device context that was created by calling the CreateDC function; instead, it must use the DeleteDC function.
|Runs on||Versions||Defined in||Include||Link to|
|Windows CE OS||1.0 and later||Winuser.h||Coredll.lib, Winmgr.lib|
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.