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>unrealizeobject()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
UnrealizeObject()
Reset the origin of a brush or reset a logical palette
------------------------------------------------------------------------------

Syntax
UnrealizeObject( <hObject> )   -->   lSuccess

Arguments
<hObject> identifies the object (a brush or palette).

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

Description
This function must be called whenever a brush is to be
selected (using the SelectObject() function) and the
SetBrushOrg() function has been called.

This function can also be used to make the system remap a
logical palette to the system palette.

Example
hRedBrush = CreateHatchBrush( HS_FDIAGONAL, RGB( 255, 0, 0 ) )
     .
     .
     .
UnrealizeObject( hRedBrush )
SetBrushOrg( hDC, 5, 5 )
hOldBrush = SelectObject( hDC, hRedBrush )
     .
     .
     .
// re-select old brush, and delete the temporary one:
DeleteObject( SelectObject( hOldBrush ) )


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

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