Vcl.Graphics.TIcon.Handle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Handle: HICON read GetHandle write SetHandle;

C++

__property HICON Handle = {read=GetHandle, write=SetHandle, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TIcon

Description

Provides access to the Windows GDI icon 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.

See Also