BOOL DeleteDC(hDC)
This function deletes the specified device context. If the hDC parameter is the last device context for a given device, the device is notified and all storage and system resources used by the device are released.
Parameter | Type/Description |
hDC | HDC Identifies the device context. |
The return value specifies whether the device context is deleted. It is nonzero if the device context is successfully deleted (regardless of whether the deleted device context is the last context for the device). If an error occurs, the return value is zero.
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.