Vcl.ImgList.TCustomImageList.HandleAllocated
Delphi
function HandleAllocated: Boolean; inline;
C++
bool __fastcall HandleAllocated();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ImgList.pas Vcl.ImgList.hpp |
Vcl.ImgList | TCustomImageList |
Description
Indicates whether a window handle exists for the image list.
Use HandleAllocated to determine if a handle exists for the image list. HandleAllocated returns true if the Windows image list has been created and a handle is available, false otherwise. HandleAllocated doesn't create a handle if it doesn't already exist.
Note: Getting the Handle property of creates the Windows image list automatically if it didn't previously exist, and returns the resulting handle.