Function:
DeleteObject(hObject)

 

Description:
Deletes an object after the program has finished using it. These objects include bitmaps, brushes, fonts, palettes, pens, and regions. Deleting the object frees up system resources associated with it. As Authorware has a native function by the same name it is necessary to load the winAPI DeleteObject function from the Gdi32.dll using another name. (For example Function Name: DeleteObjectA=DeleteObject).

 

Parameters:
hObject: A handle to the bitmap, brush, font, palette, pen, or region to delete.

 

Returns:
If successful, the function returns 1. 0 if an error occured.

 

Example:
Click on the calc icon to view a sample of the DeleteObject function.