Carbon


OverrideIconRefFromResource

Header: Icons.h Carbon status: Supported

Replaces the bitmaps in an IconRef with bitmaps from a specified resource file.

OSErr OverrideIconRefFromResource (
    IconRef theIconRef, 
    const FSSpec *resourceFile, 
    SInt16 resourceID
);
Parameter descriptions
theIconRef

An IconRef to be updated.

resourceFile

A pointer to the file system specification structure for the resource file containing the replacement bitmaps.

resourceID

The resource ID containing the replacement bitmaps. This value must be non-zero. You should provide a resource of type 'icns' if possible. If an 'icns' resource is not available, Icon Services uses standard icon suite resources, such as 'ICN#', instead.

function result

A result code.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.5 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)