Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. GetSysColor(25)?

GetSysColor(25)?

Scheduled Pinned Locked Moved The Lounge
jsonquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dontknowitall
    wrote on last edited by
    #1

    I wrote a quickie program that used a combo of GetSysColorBrush() (to verify the color's existence) and GetSysColor() to get the color. Surprisingly, GetSysColor(25) is a valid color...which has no #define nor any documentation on MSDN Library. From the Win32 API headers: #define COLOR_INFOBK 24 25? #define COLOR_HOTLIGHT 26 I get a color value of RGB(181, 181, 181). Google (and Google codesearch) turned up nothing. Not really all that important to me to know what this is. But it is a curiousity. Perhaps something left over from the Win3.x days.

    M D N 3 Replies Last reply
    0
    • D dontknowitall

      I wrote a quickie program that used a combo of GetSysColorBrush() (to verify the color's existence) and GetSysColor() to get the color. Surprisingly, GetSysColor(25) is a valid color...which has no #define nor any documentation on MSDN Library. From the Win32 API headers: #define COLOR_INFOBK 24 25? #define COLOR_HOTLIGHT 26 I get a color value of RGB(181, 181, 181). Google (and Google codesearch) turned up nothing. Not really all that important to me to know what this is. But it is a curiousity. Perhaps something left over from the Win3.x days.

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      You found the secret color that Microsoft paints all its subliminal messages in! Marc

      Thyme In The Country
      Interacx

      People are just notoriously impossible. --DavidCrow
      There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
      People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

      1 Reply Last reply
      0
      • D dontknowitall

        I wrote a quickie program that used a combo of GetSysColorBrush() (to verify the color's existence) and GetSysColor() to get the color. Surprisingly, GetSysColor(25) is a valid color...which has no #define nor any documentation on MSDN Library. From the Win32 API headers: #define COLOR_INFOBK 24 25? #define COLOR_HOTLIGHT 26 I get a color value of RGB(181, 181, 181). Google (and Google codesearch) turned up nothing. Not really all that important to me to know what this is. But it is a curiousity. Perhaps something left over from the Win3.x days.

        D Offline
        D Offline
        DavidNohejl
        wrote on last edited by
        #3

        dontknowitall wrote:

        RGB(181, 181, 181).

        181+181+181 = 543 543+123 = 666 Obvious.


        "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

        M 1 Reply Last reply
        0
        • D DavidNohejl

          dontknowitall wrote:

          RGB(181, 181, 181).

          181+181+181 = 543 543+123 = 666 Obvious.


          "Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

          M Offline
          M Offline
          mav northwind
          wrote on last edited by
          #4

          Shouldn't it be 181+181+181 = 543 5*4+3 = 23 Now everyone can pick his favourite interpretation :)

          Regards, mav -- Black holes are the places where God divided by 0...

          1 Reply Last reply
          0
          • D dontknowitall

            I wrote a quickie program that used a combo of GetSysColorBrush() (to verify the color's existence) and GetSysColor() to get the color. Surprisingly, GetSysColor(25) is a valid color...which has no #define nor any documentation on MSDN Library. From the Win32 API headers: #define COLOR_INFOBK 24 25? #define COLOR_HOTLIGHT 26 I get a color value of RGB(181, 181, 181). Google (and Google codesearch) turned up nothing. Not really all that important to me to know what this is. But it is a curiousity. Perhaps something left over from the Win3.x days.

            N Offline
            N Offline
            NingY
            wrote on last edited by
            #5

            Looks like it's the color setting for ButtonAlternateFace. You can find the value at: HKCU\Control Panel\Colors. Default color is 181 181 181. I am not sure what UI element the color applies to though. Also no idea why Microsoft leaves it out of the WinUser.h. Perhaps they don't want us to mess with this setting...

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups