RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMetafile.HandleAllocated Method

Indicates whether the TMetafile 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 HMETAFILE 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 metafile and returns its handle if the underlying GDI object does not already exist. 

 

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