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. Select individual subitem cell in CListCtrl

Select individual subitem cell in CListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 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.
  • V Offline
    V Offline
    Vickie
    wrote on last edited by
    #1

    Hi all, In a CListCtrl, is that the user can only select the ITEM ? Can the subitem in other column be selected individually too( only select the subitem )?? If can't, what should I use other than CListCtrl if I want to select cells horizontally ? Please help! Thanks! Vickie

    L J 2 Replies Last reply
    0
    • V Vickie

      Hi all, In a CListCtrl, is that the user can only select the ITEM ? Can the subitem in other column be selected individually too( only select the subitem )?? If can't, what should I use other than CListCtrl if I want to select cells horizontally ? Please help! Thanks! Vickie

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      u could either look around for an enhanced version of the clistctrl that allows individual cells to be selected / edited or you could (as i said before) use a grid control (there's a very cool one here on codeproject) :suss: --- "every year we invent better idiot proof systems and every year they invent better idiots"

      1 Reply Last reply
      0
      • V Vickie

        Hi all, In a CListCtrl, is that the user can only select the ITEM ? Can the subitem in other column be selected individually too( only select the subitem )?? If can't, what should I use other than CListCtrl if I want to select cells horizontally ? Please help! Thanks! Vickie

        J Offline
        J Offline
        James R Twine
        wrote on last edited by
        #3

        > Hi all, In a CListCtrl, is that the user can only select the ITEM    Yep. > Can the subitem in other column be selected individually too( only select the subitem )??    Not normally, no. (At least, not that *I* know of.) > If can't, what should I use other than CListCtrl if I want to select cells horizontally ?    There are various Grid and Grid-like controls out there that may give you this functionality.  On a previous Brokerage-related project, I needed this same functionality.  I ended up using the Custom Draw features of the ListView control to simulate it.    Using Custom Draw, you can highlight a specific column in the control.  If you have some other way to keep track of the current "column selection", you can simulate column selection/highlighting.    Peace! -=- James.

        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