The DeleteDC function deletes the specified device context (DC).
BOOL DeleteDC(
HDC hdc |
// handle to device context |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
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.