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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get Diplay properties...

How to get Diplay properties...

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorial
4 Posts 3 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.
  • R Offline
    R Offline
    Remi Morin
    wrote on last edited by
    #1

    Hi, I'm wan't to get the color windows is using at run time. Every object in windows use these color, to draw the back ground of a view, the color of the frame, text, title bar, button color etc. So it's the color that we set in the control panel\Display\Appearance. I wan't to access these color to let my application to be like any other window program, so... someone can tell me what familly of function or witch class or library. It must be simple, I can think something else that simple... thanks Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com

    T W 2 Replies Last reply
    0
    • R Remi Morin

      Hi, I'm wan't to get the color windows is using at run time. Every object in windows use these color, to draw the back ground of a view, the color of the frame, text, title bar, button color etc. So it's the color that we set in the control panel\Display\Appearance. I wan't to access these color to let my application to be like any other window program, so... someone can tell me what familly of function or witch class or library. It must be simple, I can think something else that simple... thanks Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com

      T Offline
      T Offline
      Tim Deveaux
      wrote on last edited by
      #2

      I think you want to look at the docs for GetSysColor.

      R 1 Reply Last reply
      0
      • T Tim Deveaux

        I think you want to look at the docs for GetSysColor.

        R Offline
        R Offline
        Remi Morin
        wrote on last edited by
        #3

        Thank you!!! It is what I'm seraching for!!! :) :laugh: :-D Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com Don't forget that some miracle come from hell

        1 Reply Last reply
        0
        • R Remi Morin

          Hi, I'm wan't to get the color windows is using at run time. Every object in windows use these color, to draw the back ground of a view, the color of the frame, text, title bar, button color etc. So it's the color that we set in the control panel\Display\Appearance. I wan't to access these color to let my application to be like any other window program, so... someone can tell me what familly of function or witch class or library. It must be simple, I can think something else that simple... thanks Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com

          W Offline
          W Offline
          Wolfram Steinke
          wrote on last edited by
          #4

          I think what you may be looking for is GetSysColor(COLOR_BTNFACE) which will return the COLORREF for the buttons face colour. If you have a look at the help topic for that API it will list the other colours you retrieve with it. Happy programming!!

          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