Board index » cppbuilder » XP Windows Explorer colors
Bob
![]() CBuilder Developer |
Bob
![]() CBuilder Developer |
XP Windows Explorer colors2005-08-09 10:16:45 PM cppbuilder28 www.pbsoftware.com/images/sample.jpg How do I get the color values for the Windows Explorer controls pictured in the sample image above? |
Ed Mulroy
![]() CBuilder Developer |
2005-08-09 10:34:32 PM
Re:XP Windows Explorer colors
I don't think those colors are easily available with a Windows call.
One thing I've done to see what colors are used is to run SuperMagnify. It displays the RGB value of the color where the cursor is located. If you do not have it, google for SMAG10.EXE - it's freeware and many sites on the web have it posted for download. . Ed QuoteBob wrote in message |
Bob
![]() CBuilder Developer |
2005-08-09 10:37:10 PM
Re:XP Windows Explorer colors
I am writing some custom controls and I would like my colors to match
Microsofts colors. I wanted to do it with code. "Ed Mulroy" < XXXX@XXXXX.COM >wrote in message QuoteI don't think those colors are easily available with a Windows call. {smallsort} |
Jonathan Benedicto
![]() CBuilder Developer |
2005-08-09 10:41:34 PM
Re:XP Windows Explorer colors
"Bob" < XXXX@XXXXX.COM >wrote in message
Quotewww.pbsoftware.com/images/sample.jpg clWindow clHighlight etc. HTH Jonathan |
Bob
![]() CBuilder Developer |
2005-08-10 12:39:35 AM
Re:XP Windows Explorer colors
Are those VCL values? I am using win32 with no VCL.
"Jonathan Benedicto" < XXXX@XXXXX.COM >wrote in message Quote"Bob" < XXXX@XXXXX.COM >wrote in message |
Jonathan Benedicto
![]() CBuilder Developer |
2005-08-10 12:49:04 AM
Re:XP Windows Explorer colors
"Bob" < XXXX@XXXXX.COM >wrote in message
QuoteAre those VCL values? I am using win32 with no VCL. GetSysColor( COLOR_WINDOW ); GetSysColor( COLOR_HIGHLIGHT ); Jonathan |
Bob
![]() CBuilder Developer |
2005-08-10 03:43:37 AM
Re:XP Windows Explorer colors
I already tried that, but the colors do not match when I change my theme.
"Jonathan Benedicto" < XXXX@XXXXX.COM >wrote in message Quote"Bob" < XXXX@XXXXX.COM >wrote in message |
Jonathan Benedicto
![]() CBuilder Developer |
2005-08-10 03:47:47 AM
Re:XP Windows Explorer colors
"Bob" < XXXX@XXXXX.COM >wrote in message
QuoteI already tried that, but the colors do not match when I change my theme. |
Bob
![]() CBuilder Developer |
2005-08-10 04:02:24 AM
Re:XP Windows Explorer colors
Yes. The colors never match the Microsoft control.
"Jonathan Benedicto" < XXXX@XXXXX.COM >wrote in message Quote"Bob" < XXXX@XXXXX.COM >wrote in message |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2005-08-10 05:02:39 AM
Re:XP Windows Explorer colors
"Bob" < XXXX@XXXXX.COM >wrote in message
QuoteI already tried that, but the colors do not match Gambit |
Jonathan Benedicto
![]() CBuilder Developer |
2005-08-10 05:27:29 AM
Re:XP Windows Explorer colors
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
QuoteThat is because you are querying the wrong values to begin with. What Jonathan |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2005-08-10 05:42:53 AM
Re:XP Windows Explorer colors
"Jonathan Benedicto" < XXXX@XXXXX.COM >wrote in message
QuoteDo you mean the cl... values I gave, or the GetSysColor values ? color values that the OS is actually using. QuoteI didn't test those GetSysColor values, maybe I should have. |
Jonathan Benedicto
![]() CBuilder Developer |
2005-08-10 05:50:33 AM
Re:XP Windows Explorer colors
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
QuoteBoth. What you suggested do not apply to the areas that Bob is asking and when the theme is changed, then the app takes on the new look. Jonathan |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2005-08-10 07:21:23 AM
Re:XP Windows Explorer colors
"Jonathan Benedicto" < XXXX@XXXXX.COM >wrote in message
QuoteIn one of my VCL apps, I've used clInactiveCaptionText, |
Bob Piskac
![]() CBuilder Developer |
2005-08-10 08:11:22 AM
Re:XP Windows Explorer colors
I found the colors in GetThemeColor. There is a section for EXPLORERBAR
which holds the values I need. "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message Quote
|