Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>deleteobject()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DeleteObject()
Delete a GDI object and free its resources
------------------------------------------------------------------------------

Syntax
DeleteObject( <hObject> )   -->   lSuccess

Arguments
<hObject> identifies the object (a pen, brush, bitmap, font,
palette, or region).

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

Description
This function deletes objects associated with drawing or
rendering (GDI) operations, such as pens, brushes, bitmaps,
and fonts.  After using this function you must not use the
<hObject> again.

NOTE: other Windows resources (cursors, icons, menus, windows)
have separate functions to free them (DestroyCursor(), etc.).

Example
hRedPen = CreatePen( PS_SOLID, 2, RGB( 255, 0, 0 ) )
     .
     .
     .
DeleteObject( hRedPen )


See Also: CreateHatchBrush() CreatePen() CreateSolidBrush() SelectObject()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson