DeleteDC

  BOOL DeleteDC(hdc)    
  HDC hdc;    

The DeleteDC function deletes the specified device context.

Parameters

hdc

Identifies the device context.

Return Value

The return value is TRUE if the device context was successfully deleted, otherwise it is FALSE.

Comments

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

GetDC, ReleaseDC CreateDC