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 make make an image with system colors?

how make make an image with system colors?

Scheduled Pinned Locked Moved C / C++ / MFC
wpfgraphicshelpquestion
3 Posts 2 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.
  • K Offline
    K Offline
    Kamis
    wrote on last edited by
    #1

    Well, the problem is I need to put a bitmap on ListCtrl header with non-rectangular shape. So edge-smoothing parts should be the same color that system uses for highlighted/pressed/free states. I'm using Windows XP and my application should depict colors correctly in any color theme (olive, silver or even classic Windows styles.)

    R 1 Reply Last reply
    0
    • K Kamis

      Well, the problem is I need to put a bitmap on ListCtrl header with non-rectangular shape. So edge-smoothing parts should be the same color that system uses for highlighted/pressed/free states. I'm using Windows XP and my application should depict colors correctly in any color theme (olive, silver or even classic Windows styles.)

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      Have you looked at GetSysColor()?

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      K 1 Reply Last reply
      0
      • R Ryan Binns

        Have you looked at GetSysColor()?

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        K Offline
        K Offline
        Kamis
        wrote on last edited by
        #3

        And how can it help me? I need to put already prepared image but not draw it myself. Ok then let's formulate the task a little different: I've set these unnecessary parts' colors to transparent but they match system (window) colors only when being in unfocused state. I need them to be depicted correctly when control is focused/highlighted too. I guess my explanation is fine.

        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