ICON Control

This resource-definition statement creates an icon control, which consists of an icon displayed in a dialog box. The ICON control statement, which you can use only in a DIALOG statement, defines the icon-resource identifier, icon-control identifier, position, and attributes of a control.

Syntax

ICON text, id, x, y, [[width, height, style [[, extended-style]]]]

Parameters

text

Specifies the name of an icon defined elsewhere in the resource file.

width

Ignored; set to zero.

height

Ignored; set to zero.

style

Specifies the control style. This parameter is optional. The only value that can be specified is the SS_ICON style, which is the default style whether this parameter is specified or not.

Example

The following code example shows how to create an icon control whose icon identifier is 901 and whose name is myicon.

ICON "myicon" 901, 30, 30 
 

See Also

DIALOG, ICON