RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIcon.HandleAllocated Method

Indicates whether the TIcon object has acquired a handle to the underlying GDI object.

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

Use HandleAllocated to determine whether the Handle property is set to an HICON 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 an icon and returns its handle if the underlying GDI object does not already exist. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!