Object_Delete

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > Resources >

Object_Delete

 

Description

 

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.

 

Syntax

 

n = Object_Delete(hObject)

 

Returns

 

Number.

If the function succeeds, the return value is nonzero.

If the specified handle is not valid or is currently selected into a DC, the return value is zero.

 

Parameters

 

Name

Type

Optional

Meaning

hObject

Number

No

Handle to a logical pen, brush, font, bitmap, region, or palette

 

Remarks

 

This function is equivalent to the Window API function DeleteObject.

 

Restrictions

 

See also

 

Examples