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 Description
AHandle THandle

The handle to the target application window.

ASizeX Integer

The required icon width, in pixels.

If you pass 0 as this parameter, the returned icon retains its original width.

ASizeY Integer

The required icon height, in pixels.

If you pass 0 as this parameter, the returned icon retains its original height.

Returns

Type Description
HICON

The handle to the icon of the target form whose handle is passed as the AHandle parameter.

See Also