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. CListView Not cooperating...

CListView Not cooperating...

Scheduled Pinned Locked Moved C / C++ / MFC
comhelptutorial
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.
  • J Offline
    J Offline
    Joseph Dempsey
    wrote on last edited by
    #1

    Does anyone know how to force CListView to select an entire row when you click on an item... by this I mean i insert a certain number of items each with 3 subitems... i want the item AND its subitems to appear highlighted... Any help would be appreciated. Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous

    M 1 Reply Last reply
    0
    • J Joseph Dempsey

      Does anyone know how to force CListView to select an entire row when you click on an item... by this I mean i insert a certain number of items each with 3 subitems... i want the item AND its subitems to appear highlighted... Any help would be appreciated. Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous

      M Offline
      M Offline
      Matt Gullett
      wrote on last edited by
      #2

      Call the SetExtendedStyle function with LVS_EX_FULLROWSELECT as the parameter.

      D 1 Reply Last reply
      0
      • M Matt Gullett

        Call the SetExtendedStyle function with LVS_EX_FULLROWSELECT as the parameter.

        D Offline
        D Offline
        Diarrhio
        wrote on last edited by
        #3

        I don't believe that will do the trick. I think the LVS_EX_FULLROWSELECT parameter only allows you to select a row by clicking anywhere on any column in that row, rather than on just the first column text. It won't actually highlight the row. To achieve the highlighting, you'll have to custom draw the control yourself, and you can find many examples of that on this site and on codeguru in the listcontrol sections. best of luck

        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