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 set the ListCtrl's item color ?

How to set the ListCtrl's item color ?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
6 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.
  • W Offline
    W Offline
    wangningyu
    wrote on last edited by
    #1

    Hello everybody ! In the project , I read the data from SQL2000,and use SetItem to set the strings. some specified column I want to set the text color,How can I do it? Thanks for your reply ! Best Reguards!

    R M S 3 Replies Last reply
    0
    • W wangningyu

      Hello everybody ! In the project , I read the data from SQL2000,and use SetItem to set the strings. some specified column I want to set the text color,How can I do it? Thanks for your reply ! Best Reguards!

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Please search for articles on List Controls. There are plenty of those at CodeProject, explaining what you're after.

      “Follow your bliss.” – Joseph Campbell

      W 1 Reply Last reply
      0
      • W wangningyu

        Hello everybody ! In the project , I read the data from SQL2000,and use SetItem to set the strings. some specified column I want to set the text color,How can I do it? Thanks for your reply ! Best Reguards!

        M Offline
        M Offline
        Mohan Ramachandra
        wrote on last edited by
        #3

        You need to do custom draw in CListCtrl. This article in CP might help you [^]

        W 1 Reply Last reply
        0
        • M Mohan Ramachandra

          You need to do custom draw in CListCtrl. This article in CP might help you [^]

          W Offline
          W Offline
          wangningyu
          wrote on last edited by
          #4

          thanks! ;P

          1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Please search for articles on List Controls. There are plenty of those at CodeProject, explaining what you're after.

            “Follow your bliss.” – Joseph Campbell

            W Offline
            W Offline
            wangningyu
            wrote on last edited by
            #5

            thanks ! ;P

            1 Reply Last reply
            0
            • W wangningyu

              Hello everybody ! In the project , I read the data from SQL2000,and use SetItem to set the strings. some specified column I want to set the text color,How can I do it? Thanks for your reply ! Best Reguards!

              S Offline
              S Offline
              Shivanand Gupta
              wrote on last edited by
              #6

              see setcolor function

              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