I'm trying to find any reference for this function, but I haven't found anything.
All I have is an obscure KB from Microsoft referencing that a programmer made boo-boo when coding a part of the Windows Mobile 6 where he should call SHGetSysColor
but instead he called GetSysColor
that gives a complete different color, for the same spec.
From what I could gather the GetSysColor
read a color value in the registry from HKEY_LOCAL_MACHINE\Software\Microsoft\Color\SHColor
or HKEY_LOCAL_MACHINE\Software\Microsoft\Color\DefSHColor
and returns the color according to the index.
In that registry I have the following value for a standard Win Mobile 6.5
"DefSHColor"=hex:\
ff,00,00,00,00,00,00,00,dd,dd,dd,00,ff,ff,cc,00,ff,ff,ff,00,15,af,bc,00,15,\
af,bc,00,c9,e7,e9,00,14,9c,a7,00,ff,ff,ff,00,14,9c,a7,00,14,9c,a7,00,14,9c,\
a7,00,15,af,bc,00,14,9c,a7,00,ff,ff,ff,00,c9,e7,e9,00,37,c7,d3,00,37,c7,d3,\
00,ff,ff,ff,00,00,b7,c9,00,14,9c,a7,00,ff,ff,ff,00,15,af,bc,00,84,84,c3,00,\
15,af,bc,00,14,9c,a7,00,ff,ff,ff,00,ff,ff,ff,00,00,00,00,00,ff,ff,ff,00,00,\
00,00,00,ff,ff,ff,00,2e,44,4f,00,00,14,3c,00,00,f0,ff,00,ff,ff,ff,00,c9,e7,\
e9,00,14,9c,a7,00,ff,ff,ff,00,14,9c,a7,00
And I realized that each four bytes represents a different color (RR,GG,BB,AA -- The AA I'm assuming here, as every color there has the AA byte as 00
which would mean that it's a solid color).
What I can't get a fix on is what each index mean, as I have 41 different colors in there.
Googling for SHGetSysColor
in gives me only 7 matches, two of them are the KB from Microsoft (one in English, the other in French) one is from a Russian site (which I don't read), yet another two are from the freepascal.org and one from Koders.com that is describing the commctl.def
file.
I went to the commctl.h
trying to see if I could find reference tom this function, and found absolutely nothing.
No search on MSDN, either fro Google, Bing, or the default MSDN search gave me any result.
So, does anyone know what indexes are we talking about here?