RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.HandleAllocated Method

Indicates whether a window handle exists for the image list.

Pascal
function HandleAllocated: Boolean;
C++
__fastcall Boolean HandleAllocated();

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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!