Directory Services |
A bitmap icon used to represent a class object can be read from the DisplaySpecifiers container. Moreover, each class can store multiple icon states. For example, a folder class can have bitmaps for the open, closed, and disabled states. The current implementation accepts a maximum of sixteen different icon states per class.
The iconPath attribute can be specified in one of two ways.
<state>,<icon file name>
or
<state>,<module file name>,<resource ID>
In these examples, the <state> is an integer with a value between 0 and 15. The value 0 is defined to be the default or "closed" state of the icon. The value 1 is defined to be the "open" state of the icon. The value 2 is the disabled state. All other values are application-defined.
The <icon file name> is the path and file name of an icon file that contains the icon image.
The <module file name> is the path and file name of a module, such an .exe or a .dll, that contains the icon image in a resource. The <resource ID> is an integer that specifies the resource identifier of the icon resource within the module.
A value can be added to the iconPath property.
To add a value to the iconPath attribute