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 select the entire row in CListControl

How to select the entire row in CListControl

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 5 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
    julych
    wrote on last edited by
    #1

    How to select the entire row in CListControl when clicking on one of its items?

    D M J R 4 Replies Last reply
    0
    • J julych

      How to select the entire row in CListControl when clicking on one of its items?

      D Offline
      D Offline
      Dr Kuulun
      wrote on last edited by
      #2

      hi, i think it is impossible. you can only select one or more cols. Dr-Kuulun

      1 Reply Last reply
      0
      • J julych

        How to select the entire row in CListControl when clicking on one of its items?

        J Offline
        J Offline
        JensB
        wrote on last edited by
        #3

        DWORD dwstyle = m_myListControl.SendMessage(LVM_GETEXTENDEDLISTVIEWSTYLE,0,0); dwstyle |= LVS_EX_FULLROWSELECT; m_myListControl.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dwstyle); this is the hard way, but in VC5 it was the only way to get it work properly. hope it helps Greetings Jens

        1 Reply Last reply
        0
        • J julych

          How to select the entire row in CListControl when clicking on one of its items?

          M Offline
          M Offline
          Muhammad Ahmed 0
          wrote on last edited by
          #4

          try this DWORD dwStyle = m_listctrl.SendMessage(LVM_GETEXTENDEDLISTVIEWSTYLE); dwStyle |= LVS_EX_FULLROWSELECT; m_listctrl.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)dwStyle); i hope this works:) ahmed

          1 Reply Last reply
          0
          • J julych

            How to select the entire row in CListControl when clicking on one of its items?

            R Offline
            R Offline
            Renjith Ramachandran
            wrote on last edited by
            #5

            use API ListView_SetExtendedListViewStyle(handle of ur listctrl, LVS_EX_FULLROWSELECT) or CListCtrl Member Function SetExtendedStyle(LVS_EX_FULLROWSELECT) CodeTheDreams();

            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