Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxGetFormIcon(THandle,Integer,Integer) Method

Returns a handle to the icon of the specified form.

#Declaration

Delphi
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