Imagelist.loadIcons Method

Loads icons from the specified resource into the image list.

public int loadIcons(str moduleName)

Run On

Client

Parameters

Parameter

Description

moduleName

The name of the file from which to load images.

Return Value

0 if the method was successful.

Example

The following example creates a list of images, and then loads the images that are contained in shell32.dll.

Imagelist list;
;
 
list = new Imagelist(Imagelist::iconWidth(),Imagelist::iconHeight());
list.loadIcons('shell32.dll'); 

See Also

Imagelist Class