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. I Need to change a single CListCtrl item color

I Need to change a single CListCtrl item color

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

    Hi I realy need help on how to change the text color of a single CListCtrl item at the list while the rest of the list needs to stay at the same color it has. Thanks in advance Assay

    S V 2 Replies Last reply
    0
    • A assay

      Hi I realy need help on how to change the text color of a single CListCtrl item at the list while the rest of the list needs to stay at the same color it has. Thanks in advance Assay

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      There are many, many good articles on doing that and more here at CodeProject. You can start with this one, and search if you need more.

      Post faster, post more, post now

      V 1 Reply Last reply
      0
      • S Shog9 0

        There are many, many good articles on doing that and more here at CodeProject. You can start with this one, and search if you need more.

        Post faster, post more, post now

        V Offline
        V Offline
        vikas amin
        wrote on last edited by
        #3

        Add a message handler as shown below and edit the code u will get the below function , just type handler in codeproject u get what u want ON_NOTIFY(NM_CUSTOMDRAW, IDC_LIST2, OnCustomdrawMyList) void Reports1::OnCustomdrawMyList(NMHDR *pNMHDR, LRESULT *pResult) Vikas Amin Embin Technology Bombay vikas.amin@embin.com

        1 Reply Last reply
        0
        • A assay

          Hi I realy need help on how to change the text color of a single CListCtrl item at the list while the rest of the list needs to stay at the same color it has. Thanks in advance Assay

          V Offline
          V Offline
          vikas amin
          wrote on last edited by
          #4

          http://www.codeproject.com/listctrl/lvcustomdraw.asp try this link Vikas Amin Embin Technology Bombay vikas.amin@embin.com

          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