Malcolm,
>Here's an interesting link from Sergey as posted in Thread #
967748.
Yes, after I posted I read Sergey's answer, then I did a search on the string Shlwapi.dll and I found the in c:\fox\testing\colors.prg the program where I used this API. Hind sight is 20/20 :)
[Update]
Oh, now I clicked the MS link, I thought it would talk about the API, so I did not clicked on it before, but those are the algorithms I think I used
[/Update]
>
>What a great idea! I always wondered how some applications managed to do this.
>
>Thanks again for your help, Hugo!
>
No problem. I really like the way it works, I used in several of our forms where we use dynamic background colors.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges