ICON Resource

This resource-definition statement specifies a bitmap that defines the shape of the icon to be used for either a specified application or an animated icon.

Syntax

nameID ICON filename

Parameters

nameID

Specifies either a unique name or a 16-bit unsigned integer value identifying the resource.

filename

Specifies the name of the file that contains the resource. The name must be a valid file name, and it must be a full path if the file is not in the current working directory. The path can either be a quoted or nonquoted string.

Remarks

Icon and cursor resources can contain more than one image.

Example

The following code example shows how to specify two icon resources.

desk1 ICON desk.ico
11 ICON custom.ico