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. List View Help!

List View Help!

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

    Hi, im using a CListCtrl (report view) with two columns in my app. the left column displays text and the right column should display color fields. i've read some tutorials about the CListCtrl. All i want to know is how i can add simple color fields in the right column. i dont want to add icons from a bitmap resource. how can i manage this???? thanks for your help! :confused: :confused: bye b4ckup (:

    C 1 Reply Last reply
    0
    • G gas

      Hi, im using a CListCtrl (report view) with two columns in my app. the left column displays text and the right column should display color fields. i've read some tutorials about the CListCtrl. All i want to know is how i can add simple color fields in the right column. i dont want to add icons from a bitmap resource. how can i manage this???? thanks for your help! :confused: :confused: bye b4ckup (:

      C Offline
      C Offline
      Carlos Antollini
      wrote on last edited by
      #2

      I never did that, but if I need to do that, I must to try with GetItemRect, this function return to me the rect of each item, and I will try to paint each rectangle in the OnPaint event.... I hope to help. :bob: me too!!! Carlos Antollini.

      G 1 Reply Last reply
      0
      • C Carlos Antollini

        I never did that, but if I need to do that, I must to try with GetItemRect, this function return to me the rect of each item, and I will try to paint each rectangle in the OnPaint event.... I hope to help. :bob: me too!!! Carlos Antollini.

        G Offline
        G Offline
        gas
        wrote on last edited by
        #3

        Thanks for the answer! I´m working on a ColorPicker. That means for every color that should be displayed in the right column, i must create an rectangle and fill it with the rgb data... argh ;) is this idea working with the LV_ITEM structure? and how can i fill the rect ??? X| bye b4ckup (:

        RaviBeeR 2 Replies Last reply
        0
        • G gas

          Thanks for the answer! I´m working on a ColorPicker. That means for every color that should be displayed in the right column, i must create an rectangle and fill it with the rgb data... argh ;) is this idea working with the LV_ITEM structure? and how can i fill the rect ??? X| bye b4ckup (:

          RaviBeeR Offline
          RaviBeeR Offline
          RaviBee
          wrote on last edited by
          #4

          You could try using custom draw. See http://codeproject.com/listctrl/lvcustomdraw.asp. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com

          1 Reply Last reply
          0
          • G gas

            Thanks for the answer! I´m working on a ColorPicker. That means for every color that should be displayed in the right column, i must create an rectangle and fill it with the rgb data... argh ;) is this idea working with the LV_ITEM structure? and how can i fill the rect ??? X| bye b4ckup (:

            RaviBeeR Offline
            RaviBeeR Offline
            RaviBee
            wrote on last edited by
            #5

            FYI, there are a bunch of nice color pickers available at http://codeproject.com/miscctrl/. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com

            G 1 Reply Last reply
            0
            • RaviBeeR RaviBee

              FYI, there are a bunch of nice color pickers available at http://codeproject.com/miscctrl/. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com

              G Offline
              G Offline
              gas
              wrote on last edited by
              #6

              Ok, thanks a lot :-O bye b4ckup (:

              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