ReleaseDC (Windows CE 5.0)

Send Feedback

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.

intReleaseDC( HWNDhWnd, HDChDC);

Parameters

  • hWnd
    Handle to the window whose device context is to be released.
  • hDC
    Handle to the device context to be released.

Return Values

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.

Remarks

The application must call the ReleaseDC function for each call to the GetWindowDC function and for each call to the GetDC function that retrieves a common device context.

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.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.
Link Library: Coredll.lib, Winmgr.lib.

See Also

CreateDC | DeleteDC | GetDC | GetWindowDC

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.