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 a line under any column in a CListCtrl ???

Select a line under any column in a CListCtrl ???

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
2 Posts 2 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.
  • L Offline
    L Offline
    Luc Bergeron
    wrote on last edited by
    #1

    Hello to all programmers out there !!! I have a CListCtrl with 5 column headers and single select option. When I want to select a line I can only use the first header. How can I make it so that when I click on the last header (or any of them) the line gets selected ??? Thanx in advance for any help :) Have a nice day !

    M 1 Reply Last reply
    0
    • L Luc Bergeron

      Hello to all programmers out there !!! I have a CListCtrl with 5 column headers and single select option. When I want to select a line I can only use the first header. How can I make it so that when I click on the last header (or any of them) the line gets selected ??? Thanx in advance for any help :) Have a nice day !

      M Offline
      M Offline
      Mike Dunn
      wrote on last edited by
      #2

      Set the full-row select style of the list control. Unfortunately, you can't set this in the dialog editor, so you have to do it with code: mylist.SetExtendedStyle ( LVS_EX_FULLROWSELECT ); You need v4.70 or greater of the common controls for this to work.

      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