The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.
Declare Function DeleteObject Lib "gdi32" Alias "DeleteObject" (ByVal hObject As Long) As Long
|Operating Systems Supported|
|Requires Windows NT 3.1 or later; Requires Windows 95 or later|
Identifies a logical pen, brush, font, bitmap, region, or palette.
|If the function succeeds, the return value is nonzero. |
If the specified handle is not valid or is currently selected into a device context, the return value is zero.