I have a cWebTreeView that for some items, as part of the name that is displayed as the tree item, is the text OK or ERROR.
For the ones that contain the text OK I would like to display the tree item using the colour Green
For the ones that contain the text ERROR I would like to display the tree time using the colour Red.

The colour of the tree item would be either Red, Green or normal

Does anyone have an idea how I would go about doing that?

Thanks
Archie