共用方式為


DeleteDC

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function deletes the specified device context (DC).

Syntax

BOOL DeleteDC(
  HDC hdc
); 

Parameters

  • hdc
    [in] Handle to the device context.

Return Value

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Remarks

An application must not delete a device context whose handle was obtained by calling the GetDC function. Instead, it must call the ReleaseDC function to free the device context.

Requirements

Header windows.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

GetDC
ReleaseDC
GDI Functions