RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIcon.Handle Property

Provides access to the Windows GDI icon handle.

Pascal
property Handle: HICON;
C++
__property HICON Handle;

Use Handle to specify the icon when using a Windows API function that requires the handle of an icon object. The Handle property is nil (Delphi) or NULL (C++) if the icon has not been loaded. 

Call the ReleaseHandle method before changing the icon image by setting the Handle property. The icon image can also be loaded by assigning another icon object or using the LoadFromClipboardFormat, LoadFromFile, or LoadFromStream method. 

 

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