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. COLORREF

COLORREF

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 Posts 4 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    hi, i am getting COLORREF value.i want to get its equivalent color name..pls help me.

    R I J 3 Replies Last reply
    0
    • A Anonymous

      hi, i am getting COLORREF value.i want to get its equivalent color name..pls help me.

      R Online
      R Online
      Rage
      wrote on last edited by
      #2

      Anonymous wrote: its equivalent color name What do you mean exactely by "color name" ? Like in HTML ? ~RaGE();

      1 Reply Last reply
      0
      • A Anonymous

        hi, i am getting COLORREF value.i want to get its equivalent color name..pls help me.

        I Offline
        I Offline
        imsniper
        wrote on last edited by
        #3

        Well .. COLORREF can handle 16 million colors i dont think that there are names for each one of them... What you could do is to have a small array or string resource that you can map to the default colors (white, black,green,yellow,blue....) you know ..the basic ones.

        1 Reply Last reply
        0
        • A Anonymous

          hi, i am getting COLORREF value.i want to get its equivalent color name..pls help me.

          J Offline
          J Offline
          JohnnyG
          wrote on last edited by
          #4

          Check out this article: http://www.codeproject.com/bitmap/ccolor.asp?target=ccolor[^] I've used this class before and whenever I need a color I just look up its name in the header file for this class. The article also has a display chart of all the colors it has pre-defined. Best of all the class is COLORREF compatible.

          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