--- In [email protected], "quantiworks" <quanticwo...@...> 
wrote:
>
> --- In [email protected], "brucexs" <bswitzer@> 
> wrote:
> > 
> > 0x313131
> >
> 
> bruce it still doesn't work.
> If
> R156
> G74
> B0
> 
> dll.call("SetSysColors|uint uint* uint*",1,1,0x156740)
> 
> How are RGB values differentiated? I mean 156740 could be 
> R15
> G67
> B40
> 
> explaining the different colors I'm getting...
> I've tried with hex values and the results are the same.
> 
> dll.call("SetSysColors|uint uint* uint*",1,1,0xbf00) "red"
> 
> changes desktop color to "bright green"
> 
> I'm I doing it wrong?

Red is in the lowest byte.  Green in the middle.  Blue shifted 16 
bits. The standard windows macro is
#define RGB(r, g ,b)  ((DWORD) (((BYTE) (r) | \ 
    ((WORD) (g) << 8)) | \ 
    (((DWORD) (BYTE) (b)) << 16))) 

So for powerpro that could be

rgb = r + (g<<8) + (b<<16)




Or you use (
>


Reply via email to