RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIcon.ReleaseHandle Method

Releases the Windows GDI object represented by the icon.

Pascal
function ReleaseHandle: HICON;
C++
__fastcall HICON ReleaseHandle();

Call ReleaseHandle to release the resources used to represent the icon. ReleaseHandle sets the Handle property to nil (Delphi) or NULL (C++). 

ReleaseHandle informs the TIcon instance that it is no longer responsible for destroying the icon handle. 

 

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