A COLORREF is just a name for a DWORD value which is a concatenation of the three RGB values of a color. When you view the value in hexadecimal it is very easy to see how it is made:
0x00BBGGRR
Where BB is te blue component (a value from 0 to 255 (decimal))
Where GG is te green component (a value from 0 to 255 (decimal))
Where RR is te red component (a value from 0 to 255 (decimal))
So you can very easly make this value yourself if you know the RGB values. Just binary left shift the individual components:
var Red = 11
var Green = 22
var Blue = 33
with pure arethmetics:
var ColorRef = Blue * 256 * 256 + Green * 256 + Red
or the equivalent:
var ColorRef = (Blue << 16) + (Green << 8) + Red
in VBScript/VB you can also use the RGB() function:
ColorRef = RGB(Red, Green, Blue)
---
A COLORREF value is also used in the Plus! registry settings for some values:
http://www.msgpluslive.net/help/registry/
---
Blah, need to refresh more often again