Forum rules - please read before posting, it can save you a lot of time.
//////////////////////////////////////////////////////////////////////////// packs RGBA values into a single DWORD numberunsigned long CWmeUtils::MakeRGBA(unsigned char R, unsigned char G, unsigned char B, unsigned char A){ return (unsigned long)((((A)&0xff)<<24)|(((B)&0xff)<<16)|(((G)&0xff)<<8)|((R)&0xff));}