How can I convert a color constant (such as vbWindowBackground) to RGB? The method I'm now using (see below) only works with colors retrieved from a CommonDialog color dialog selector.
But this doesn't work with when lSourceColor is a system color constant. Do I have to convert the color to another format before using that RGB function? How?Code:RVal = Int(lSourceColor Mod 256) GVal = Int((lSourceColor \ 256) Mod 256) BVal = lSourceColor \ 65536




Reply With Quote