Vcl.Graphics.TBitmap.HandleAllocated
Delphi
function HandleAllocated: Boolean;
C++
bool __fastcall HandleAllocated();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TBitmap |
Description
Indicates whether the TBitmap object has acquired a handle to the underlying GDI object.
Use HandleAllocated to determine whether the Handle property is set to an HBITMAP value. HandleAllocated indicates whether the underlying GDI object has already been created. Use HandleAllocated rather than reading the Handle property. When an application reads the Handle property, it automatically creates a bitmap and returns its handle if the underlying GDI object does not already exist.