This function deletes the specified device context (DC).
At a Glance
Header file: | Wingdi.h |
Windows CE versions: | 1.0 and later |
Syntax
BOOL DeleteDC(HDC hdc);
Parameters
hdc
[in] Handle to the device context.
Return Values
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.
See Also