Skip to main content

TcxCustomImageList.AddImageFromResource(THandle,string,PChar) Method

Appends a specific image from the specified resource module.

Declaration

function AddImageFromResource(AInstance: THandle; const AResourceName: string; AResType: PChar): Integer;

Parameters

Name Type Description
AInstance THandle

A handle to the resource module.

AResourceName string

A resource name.

AResType PChar

The resource type.

Returns

Type Description
Integer

The index of the added image if the add operation is successful; otherwise, -1.

See Also