Skip to main content

dxGetFormIcon(THandle,Integer,Integer) Method

Returns a handle to the icon of the specified form.

Declaration

function dxGetFormIcon(AHandle: THandle; ASizeX: Integer; ASizeY: Integer): HICON;

Parameters

Name Type
AHandle THandle
ASizeX Integer
ASizeY Integer

Returns

Type
HICON

Remarks

Call this global function to return a handle to the small or large icon associated with the application window whose handle is passed as the AHandle parameter. Pass the desired icon width and height (in pixels) as the ASizeX and ASizeY parameters, respectively. If zero is passed instead of a value, the corresponding dimension of the image returned via the icon handle is the same as the original image.

See Also