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. CListCtrl - Multiple selection from anywhere within the list

CListCtrl - Multiple selection from anywhere within the list

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 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.
  • A Offline
    A Offline
    AORD
    wrote on last edited by
    #1

    Hi, I have a CListCtrl set to LVS_EX_FULLROWSELECT style. Using the mouse to create a multiple selection in a list control only seems to work when you select from the empty space in the first column. Is there an easy way to allow multiple selection from anywhere inside the list control?

    R 1 Reply Last reply
    0
    • A AORD

      Hi, I have a CListCtrl set to LVS_EX_FULLROWSELECT style. Using the mouse to create a multiple selection in a list control only seems to work when you select from the empty space in the first column. Is there an easy way to allow multiple selection from anywhere inside the list control?

      R Offline
      R Offline
      Rajkumar R
      wrote on last edited by
      #2

      AORD wrote:

      Using the mouse to create a multiple selection in a list control only seems to work when you select from the empty space in the first column.

      It seems you are using Report view, but normally multiple(or single) selection is possible on any item except the empty space. Please explain?

      A 1 Reply Last reply
      0
      • R Rajkumar R

        AORD wrote:

        Using the mouse to create a multiple selection in a list control only seems to work when you select from the empty space in the first column.

        It seems you are using Report view, but normally multiple(or single) selection is possible on any item except the empty space. Please explain?

        A Offline
        A Offline
        AORD
        wrote on last edited by
        #3

        Yes you are correct, i am using report view (sorry I should have mentioned :-O ). I have checked with examples at codeproject. e.g http://www.codeproject.com/KB/combobox/listctrldemo.aspx[^] click on the details tab for report view, try multiple selecting using the mouse from the Value or Time columns, you can't :(( :(( :(( :(( Any ClistCtrl using report only allows multiple selection from the left hand column :( . Single selection works fine. There must be an easy way allow a mouse drag selection from anywhere in the other populated columns?

        ___________________________

        R 1 Reply Last reply
        0
        • A AORD

          Yes you are correct, i am using report view (sorry I should have mentioned :-O ). I have checked with examples at codeproject. e.g http://www.codeproject.com/KB/combobox/listctrldemo.aspx[^] click on the details tab for report view, try multiple selecting using the mouse from the Value or Time columns, you can't :(( :(( :(( :(( Any ClistCtrl using report only allows multiple selection from the left hand column :( . Single selection works fine. There must be an easy way allow a mouse drag selection from anywhere in the other populated columns?

          ___________________________

          R Offline
          R Offline
          Rajkumar R
          wrote on last edited by
          #4

          I just run the demoproject with not even building it, it runs fine in my system, I can multiselect clicking on any item in any column, only the empty space next to time column is not possible.

          AORD wrote:

          There must be an easy way allow a mouse drag selection from anywhere in the other populated columns?

          Drag and Drop between and within a CListCtrl[^]

          A 1 Reply Last reply
          0
          • R Rajkumar R

            I just run the demoproject with not even building it, it runs fine in my system, I can multiselect clicking on any item in any column, only the empty space next to time column is not possible.

            AORD wrote:

            There must be an easy way allow a mouse drag selection from anywhere in the other populated columns?

            Drag and Drop between and within a CListCtrl[^]

            A Offline
            A Offline
            AORD
            wrote on last edited by
            #5

            Running the DragTest.exe (not building) I can only multi select with the mouse on the blank areas, this includes the blank area in the word column, BUT not the blank area in the index column. If you can and I can't multi select with the mouse on all of the populated columns it must be the windows file that contains the ClistCtrl? What version of windows are you running? I'm using XP.

            ___________________________ Here come the machines!

            R 1 Reply Last reply
            0
            • A AORD

              Running the DragTest.exe (not building) I can only multi select with the mouse on the blank areas, this includes the blank area in the word column, BUT not the blank area in the index column. If you can and I can't multi select with the mouse on all of the populated columns it must be the windows file that contains the ClistCtrl? What version of windows are you running? I'm using XP.

              ___________________________ Here come the machines!

              R Offline
              R Offline
              Rajkumar R
              wrote on last edited by
              #6

              I tested in vista, now in XP also, i can select at both the columns but not on the blank area right after index column and below the populated items. check on others machines I never faced this issue.

              A 1 Reply Last reply
              0
              • R Rajkumar R

                I tested in vista, now in XP also, i can select at both the columns but not on the blank area right after index column and below the populated items. check on others machines I never faced this issue.

                A Offline
                A Offline
                AORD
                wrote on last edited by
                #7

                Running the DragTest.exe on my XP work tablet the same problem occurs. I'm not sure we are talking about the same thing. :( I'm only multiple selecting using the mouse left button. I don't care about dragging at all, I just want to create a blue highlighted selection of rows. With the DragTest.exe the Index colum only is dragable I cannot create a multiple selection of rows unless i do the following steps: a) left click and hold the mouse button on the first columns blank area or anywhere after the last row or column. b) then I move the mouse to highlight the rows I want. This creates a rectangle (of dashed lines)that covers the first highlighted row from the start position of the mouse to the final position of the mouse. c) I release the mouse then the dashed rectangle disappears and a whole lot of rows remain highlighted in blue. The problem is when I have a big list say 20,000 rows and 30 columns the user can't always use the mouse to select a whole lot of rows.

                ___________________________ Here come the machines!

                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