[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Graphics' (#lcl)

# TCustomBitmap.SetHandle

Re-implements the method from the ancestor class.

## Declaration

Source position: graphics.pp line 1411

`protected procedure TCustomBitmap.SetHandle(`
`AValue: TLCLHandle`
`); override;`

## Description

SetHandle is an overridden method in TCustomBitmap, and re-implements the method from the TRasterImage ancestor class. AValue contains the new handle instance assigned to the BitmapHandle property.

## Version info

Modified in LCL version 4.0 to use the TLCLHandle type instead of the deprecated THandle type in the Value parameter.

## See also

TRasterImage.BitmapHandle |  | BitmapHandle - the Handle that has been allocated for the Bitmap.
TRasterImage.SetHandle |  | Sets the handle used for the image.
LCLType.TLCLHandle |  | Alias to the TLCLHandle type defined for widgetset references.
WSReferences.TLCLHandle |  | The type used for handles in LCL applications, components, controls, and widget set classes.