setCtlImage

Syntax

setCtlImage(int ctl, string filename, string type)

Arguments

ctl
The number of the control whose image you want to change.
filename
The filename of the image you want to display.
type
The type of the image file you want to display (see below).

Description

setCtlImage changes the image displayed by an IMAGE, METAFILE, BITMAP, or ICON control at run time. The type is a single char constant that specifies the type of image file, as follows:
'B' - bitmap file (.bmp)
'W' - Windows (old-style) metafile (.wmf)
'E' - enhanced metafile (.emf)
'I' - icon file (.ico)
'C' - cursor file (.cur)
'J' - JPEG file (.jpg)
'G' - GIF file (.gif)
'M' - MIG (mouse-ivo graphics) file (.mig)
'0' - unspecified file type

Example

// Sets control number 8 to display the progress5.bmp
// bitmap image, stored in the bitmaps subdirectory.
setCtlImage(8, "bitmaps\\progress5.bmp", 'B');

Also see

(specify)?

Comments